Results 1 to 11 of 11

Thread: Closing form

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member jokerfool's Avatar
    Join Date
    Dec 2006
    Location
    Gold Coast, Australia
    Posts
    452

    Resolved Closing form

    I have moved from vb6 and being only a beginner of vb6 but understanding somewhat the basics, I am having trouble with 2010 and the new code.

    When someone clicks the button I generally would add to load the form then followed by the unload me.

    So where am I going wrong in 2010?

    Code:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Form1.Show()
            Me.Close()
        End Sub
    I tried the unload me, thats not even an option, adds some other weird stuff, so I googled and tried the me.close but thats not it either.

    Thanks.
    Last edited by jokerfool; Nov 20th, 2010 at 11:01 AM.

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