Results 1 to 2 of 2

Thread: Load Forms

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2002
    Location
    USA
    Posts
    1

    Arrow 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

  2. #2
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089

    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
  •  



Click Here to Expand Forum to Full Width