你在新的线程中创建的activex?
解决方案 »
- 使用C#创建SQL2005触发器,如果获得当前正在操作的数据?
- 如何对输入的数字排序 ,保存到动态数组C# 如,8366,45,123,789
- 关于WINFROM中的GRIDDATAVIEW中怎么实现分页!
- Winform将Excel读入datagridview的时候触发事件但没效果
- lable如何只读?
- 请<中间件技术>课件
- for循环里面的arrKey[i]调用的是foreach的arrKey,这样写对吗,
- 问一个c#的打印问题?!
- 怎么做透明的label?在VB中设置backStyle为transparent就行了,在C#中呢?谢谢
- 一个多线程问题的处理问题?
- 求一个正则表达式
- txt文本里面有一篇文章如何把最后一行提取出放到新的txt里面
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new StartForm());
}
这是Main函数,在StartForm()中利用
private void timer1_Tick(object sender, EventArgs e)
{
new System.Threading.Thread((System.Threading.ThreadStart)delegate
{
Application.Run(new LogForm());
}).Start();
this.Close();
}
创建LogForm,在LogForm中利用
private void button1_Click(object sender, EventArgs e)
{
if (String.IsNullOrEmpty(textBox1.Text.Trim()) || String.IsNullOrEmpty(textBox2.Text))
{
MessageBox.Show("登录用户和登录密码不许为空!", "软件提示");
}
else
{
if (textBox1.Text == "admin" && textBox2.Text == "admin")
{
new System.Threading.Thread((System.Threading.ThreadStart)delegate
{
Application.Run(new MainForm());
}).Start();
this.Close();
}
else
{
MessageBox.Show("登录用户或者登录密码错误!", "软件提示");
}
}
创建MainForm,最后在MainForm中ACTIVE控件报错
private void InitializeComponent()
{
this.axShockwaveFlash1 = new AxShockwaveFlashObjects.AxShockwaveFlash();报错