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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top