|
-
Aug 17th, 2002, 03:12 AM
#1
Thread Starter
New Member
Load Forms
I have two files.
entry.vb
MenuForm.vb
When I execute application it pop-ups form entry.vb.
when user clicks login button on entry.vb it should load(show)
the MenuForm.vb.
Could you tell how to do this
I got this code, but getting error:
Private Sub BtnLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnLogin.Click
Me.Hide 'Hides entry.vb
MenuForm.Show() 'it should load MenuForm-----its giving error
End Sub
ERROR MESSAGE:Reference to a non-shared member requires an object reference.
Thank you
-
Aug 17th, 2002, 03:49 AM
#2
PowerPoster
hi
U need a reference to the menu form
Something like this in a module
dim frm as new MenuForm
and then later you can use it
frm.show
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|