简单问题

21xxb 2005-01-05 06:07:07
写了个软件封面过程是这样
在MainForm中
static void Main()
{
Application.EnableVisualStyles();
Application.Run(new SplashForm());
}
启动了SplashForm
在显示后在SplashForm中用
MySplashThread = new Thread(new ThreadStart(SplashForm.ShowThread));
MySplashThread.IsBackground = true;
MySplashThread.ApartmentState = ApartmentState.STA;
MySplashThread.Start();
启动MainForm,但不知什么原因总是关闭不了SplashForm,Close()之类的都试了,但总是不行,

大侠们给个解决方案。
...全文
64 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
Fibona 2005-01-06
  • 打赏
  • 举报
回复
dispose里中止该线程
lgg06 2005-01-05
  • 打赏
  • 举报
回复
我觉得是在dispose中添加this.MySplashThread.Abort();
hujiiori 2005-01-05
  • 打赏
  • 举报
回复
dispose里中止该线程
raulredondo 2005-01-05
  • 打赏
  • 举报
回复
在closeed或者closing事件里面加
this.MySplashThread.Abort();

110,534

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧