Open Forms

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.
 
T

touf

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
 
H

Herfried K. Wagner [MVP]

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()
///
 
F

Fergus Cooney

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.
 

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

Top