private Thread ThreadCheck;
private Thread ThreadForm;
private MainForm mMainForm; private void LogoForm_Load(object sender, System.EventArgs e)
{
try
{
ThreadCheck = new Thread(new ThreadStart(SetLableInfo));
ThreadCheck.Start();
ThreadForm = new Thread(new ThreadStart(MainFormLoad));
ThreadForm.Start();
}
catch(Exception ex)
{
throw ex;
}
} private void SetLableInfo()
{
this.lblLogo.Text ="";
for(int i=0;i< 100;i++)
{ int Temp = Convert.ToInt16(i%6);
if(Temp ==0)
{
this.lblLogo.Text =strStatic;
this.lblLogo.Refresh();
}
else
{
this.lblLogo.Text += strDot;
this.lblLogo.Refresh();
}
Thread.Sleep(1000);
}
}
private void MainFormLoad()
{
mMainForm = new MainForm();
mMainForm.Show();
//
//this.Hide();
}
private Thread ThreadForm;
private MainForm mMainForm; private void LogoForm_Load(object sender, System.EventArgs e)
{
try
{
ThreadCheck = new Thread(new ThreadStart(SetLableInfo));
ThreadCheck.Start();
ThreadForm = new Thread(new ThreadStart(MainFormLoad));
ThreadForm.Start();
}
catch(Exception ex)
{
throw ex;
}
} private void SetLableInfo()
{
this.lblLogo.Text ="";
for(int i=0;i< 100;i++)
{ int Temp = Convert.ToInt16(i%6);
if(Temp ==0)
{
this.lblLogo.Text =strStatic;
this.lblLogo.Refresh();
}
else
{
this.lblLogo.Text += strDot;
this.lblLogo.Refresh();
}
Thread.Sleep(1000);
}
}
private void MainFormLoad()
{
mMainForm = new MainForm();
mMainForm.Show();
//
//this.Hide();
}
解决方案 »
- 奇怪的tcpclient错误.头大死了。在线等
- 如何使用c#来操纵其他语言写的程序窗体
- 求个简单的正则表达式写法
- winform中的dll问题~~各位帮忙~~
- 只有10分了,希望兄弟们帮忙解决。 ds.GetXml() 时我想去除某个属性,怎么失现!
- datagrid嵌套怎么再嵌套的datagrid里实现编辑功能呢
- 请问如何可以实现在当前窗口中增加一个提示信息以表示不断变化的数字信息???
- 请教大家问题
- byte[]变量中的值怎么转化到string中,反之呢?
- 有人用过vs.net里的测试工具Application Center Test吗?
- oracle 数据库备份问题
- DataGrid能不能进行客户端的操作啊?
2. this.Hide()之前加上this.ShowInTaskbar=false;试试。