用多线程操作。 引入命名空间 Imports System.Threading写个方法 Private Sub FormStart() Application.Run(New NewForm) '*运行1个新的程序窗口 End Sub然后在你LoginForm的进入那个按钮下写下面的语句 Dim thread As New Thread(New ThreadStart(AddressOf FormStart)) '*定义新的线程来打开窗体 thread.Start() Application.Exit() '*关闭登陆窗体 以上所有代码都是写在LoginForm中
然后在启动窗体中再调用主程序的exe并同时关闭自身
在MainForm的FormLoad中创建NewForm,在NewForm中完成验证过程,然后吧NewForm dispose掉,这时MainForm继续执行,正好显示出来。
http://blog.csdn.net/knight94/archive/2006/04/06/652394.aspx
引入命名空间
Imports System.Threading写个方法
Private Sub FormStart()
Application.Run(New NewForm) '*运行1个新的程序窗口
End Sub然后在你LoginForm的进入那个按钮下写下面的语句
Dim thread As New Thread(New ThreadStart(AddressOf FormStart)) '*定义新的线程来打开窗体
thread.Start()
Application.Exit() '*关闭登陆窗体
以上所有代码都是写在LoginForm中
http://blog.csdn.net/tjvictor/archive/2006/12/25/1459671.aspx