On Mon, 3 Nov 2003 15:31:42 -0800, prob wrote:
Dim x as new form2
x.show
me.close
will never shows form2.. it opens and closes immediately
That's because you are probably using Form1 (Me) as your startup form.
When you close that, it closes the whole application.
Create a module and add a sub main to it. In the project properties, set
the startup object as Sub Main.
'Untested
Public Sub Main()
Dim frmMain As New Form1
frmMain.Show
Application.Run()
End Sub
With this method, you must call Application.Exit to close the application.
--
Chris
To send me an E-mail, remove the underscores and lunchmeat from my E-Mail
address.