Open Forms

  • Thread starter Thread starter Wes McCaslin
  • Start date Start date
W

Wes McCaslin

How do you open a form. I know in vb is it is me.formname.show, but in .net
the .show will just flash it.

Here is what i'm tring to do. I have created a splashscreen and a Login
screen the splashscreen is on a timer.I want the timer to close the
splashscreen and open the login screen.
 
in vb.net the form is a class, so you need to create an instance before to
use it

dim frm as formName
frm.show
 
Wes McCaslin said:
How do you open a form. I know in vb is it is me.formname.show, but in .net
the .show will just flash it.

Here is what i'm tring to do. I have created a splashscreen and a Login
screen the splashscreen is on a timer.I want the timer to close the
splashscreen and open the login screen.

You will have to instantiate the form class:

\\\
Dim f As New Form1()
f.Show()
///
 
Hi Wes,

If your form is flashing - ie, shows and then disappears, it sounds like
you could have failed to get its message pump working.

This may sound like gobbledegook so I'll ask a question. - Are you calling
frmSplash.Show from Sub Main?

It's probably a good idea if you show us what you're doing to create your
Splash form.

Regards,
Fergus.
 
Back
Top