现在有个程序启动有点慢,要等一段时间才能出界面,估计是都做到exe里面了,没有做成DLL,想做一个启动画面,显得友好点,
按坛子上高人说的方法,如下:
//WWW1
delegate void LoadInterfaceDelegate(); 
Thread __ThreadProgramLoad;
/WWW2
LoadInterfaceDelegate __LoadInterface = new LoadInterfaceDelegate(StartPro); //WWW3
private void StartInterfaceShow()
{
RibbonFormStartInterface __StartInterface = new RibbonFormStartInterface();
__StartInterface.Show();
}
//WWW4
public void StartPro()
{
__ThreadProgramLoad = new Thread(StartInterfaceShow);
__ThreadProgramLoad.Start();
}//WWW5   在你进行操作的方法里第一句加上:
this.Invoke(__LoadInterface);//用指定的参数列表执行指定的委托//WWW6 最后一行加上:
__ThreadProgramLoad.Abort();
///////////////////////////////////////////////////////////////////////////////////////////////
我的程序架构如下(分别将WWW1,WWW2,,,,WWW6放入下面指定的地方):[STAThread]
static void Main()
{
//1
Application.Run(new WinFormNemo001());
//2
}
public partial class WinFormNemo001 : RibbonForm
{
//3 WWW1
public WinFormNemo001()
{
//4 WWW2
//  WWW5
InitializeComponent();
//5 WWW6
}
//6 WWW3
//  WWW4

}     调试时提示在WWW5处:"在创建窗口句柄之前,不能在控件上调用 Invoke 或 BeginInvoke。" 原贴地址:http://topic.csdn.net/u/20090916/14/FCE870D3-47D6-4ACF-A300-7F5671BDB1DE.html请教各位如何处理...