No Show

Hey Experts -

Can someone explain to me why I can't open a form using form.show?  That is the correct call to open a form from within a sub routine, isn't it?  When I try and use this command it says that "reference to a non-shared member requires an object reference."  Please help.

Erin
21erinswiftAsked:
Who is Participating?
 
bramsquadConnect With a Mentor Commented:
im sorry, it would be

frm.Show()
0
 
bramsquadCommented:
make sure to delcare the form and a NEW object

Dim frm As New Form1

Form1.Show()

~b
0
 
thenrichCommented:
Yea .NET is an objected Oriented structure and your dealing with strict objects. You must intantiate the form then use the .show or .showdialog
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.