calling a menu form from another menu
-
How do i call a menu form from another menue i have tried the following and not working. Private Sub RestoreToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RestoreToolStripMenuItem.Click Dim frmSecondMenu As New SecondMainMenu frmSecondMenu. (this did have showDialog in the list of methods) End Sub if i type it as frmSecondMenu.ShowDialog() i have the following error Error: Error 9 'showDialog' is not a member of 'System.Windows.Forms.SecondMainMenu'. what will i do
-
How do i call a menu form from another menue i have tried the following and not working. Private Sub RestoreToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RestoreToolStripMenuItem.Click Dim frmSecondMenu As New SecondMainMenu frmSecondMenu. (this did have showDialog in the list of methods) End Sub if i type it as frmSecondMenu.ShowDialog() i have the following error Error: Error 9 'showDialog' is not a member of 'System.Windows.Forms.SecondMainMenu'. what will i do
I think you want to call SecondMainMenu's Click procedure in the RestoreToolStripMenuItem_Click() If you, then
Private Sub RestoreToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RestoreToolStripMenuItem.Click SecondMainMenu_Click(sender, e) End Sub
-
I think you want to call SecondMainMenu's Click procedure in the RestoreToolStripMenuItem_Click() If you, then
Private Sub RestoreToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RestoreToolStripMenuItem.Click SecondMainMenu_Click(sender, e) End Sub