Launch a new form and close the first

  • Thread starter Thread starter Skylar Challand
  • Start date Start date
S

Skylar Challand

I'm having troubles trying to do this with .net...

How can I have the startup object (frmSplash) open up another form (frmMain)
and then close itself?

I used to be able to do this with 6, but it seems to be different with .net.
If i use Me.ActiveForm.Close() then the whole application shuts down. I'm
using Me.ActiveForm.Hide() right now as a workaround, but isn't there a
better way to do it?
 
I'm having troubles trying to do this with .net...

How can I have the startup object (frmSplash) open up another form (frmMain)
and then close itself?

I used to be able to do this with 6, but it seems to be different with .net.
If i use Me.ActiveForm.Close() then the whole application shuts down. I'm
using Me.ActiveForm.Hide() right now as a workaround, but isn't there a
better way to do it?

You need to handle the "MainForm" property of the current
ApplicationContext. See:

http://tinyurl.com/2uddh
 
Back
Top