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?
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.Code:Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Form1.Show() Me.Close() End Sub
Thanks.




Reply With Quote