Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27243

VS 2008 Help (Open form)

$
0
0
Hello every one....

When you have 2 forms(form1_form2) and you have button in form1 then you type this code
PHP Code:

 Private Sub Button1_Click(ByVal sender As System.ObjectByVal e As System.EventArgsHandles Button1.Click
        Form2
.ShowDialog()
    
End Sub 

This code will open form2 and keep form1 active

My problem is how i can write code that when i press button which on form1 the form2 will be open and form1 will be closed

Viewing all articles
Browse latest Browse all 27243

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>