I have designed one MDIParent form with some menus. When I click on the Menu I need to pen a form in the click event of that menu item. The form which will be displayed already exists in the windows application. Please help me with this.
Showing a form on the click of a MDIparent Menu Item
Collapse
X
-
Tags: None
-
You mean something like this?
StevenCode:Private Sub btnMenuStripItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnMenuStripItem.Click Dim mdiChildForm As New AlreadyExistingForm mdiChildForm.MdiParent = Me mdiChildForm.WindowState = FormWindowState.Maximized mdiChildForm.Show() End Sub -
Originally posted by MrMancunianYou mean something like this?
StevenCode:Private Sub btnMenuStripItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnMenuStripItem.Click Dim mdiChildForm As New AlreadyExistingForm mdiChildForm.MdiParent = Me mdiChildForm.WindowState = FormWindowState.Maximized mdiChildForm.Show() End Sub
Thanks a lot Steven but my code is in C#.So can you plz help me out with C# code??Comment
-
You'll have to figure that out yourself... Converting VB.NET code to C# should be pretty straight forward.Originally posted by helpmewithaspThanks a lot Steven but my code is in C#.So can you plz help me out with C# code??
StevenComment
Comment