Link to home
Start Free TrialLog in
Avatar of 21erinswift
21erinswift

asked on

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
Avatar of bramsquad
bramsquad
Flag of United States of America image

make sure to delcare the form and a NEW object

Dim frm As New Form1

Form1.Show()

~b
ASKER CERTIFIED SOLUTION
Avatar of bramsquad
bramsquad
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of thenrich
thenrich

Yea .NET is an objected Oriented structure and your dealing with strict objects. You must intantiate the form then use the .show or .showdialog