SpiN9823
01-19-2004, 07:56 AM
how do i open up a new form with a menu item??!!
opening new form from a menu itemSpiN9823 01-19-2004, 07:56 AM how do i open up a new form with a menu item??!! GMan_NC 01-19-2004, 07:58 AM Private Sub MenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem1.Click Dim frm As New frmYourForm frm.Show() End Sub SpiN9823 01-19-2004, 08:33 AM wow... that was quick thx SpiN9823 01-19-2004, 08:38 AM i have a button on form2 that is meant to cloase it but is closes form1 too.... any help?? GMan_NC 01-19-2004, 08:40 AM What is your code to close form2? SpiN9823 01-19-2004, 10:17 AM Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click End End Sub Mighty Goober 12-12-2007, 07:54 PM Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.Close() End Sub |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum