MDI Form ToolStripMenu
-
Hi to everybody I use Visual Studio 2005. I have an MDI form and when I open child forms I want their instances to be entered in a ToolStripMenu named Windows. For example when I will open Childform1 and Childform2 I want the dropdownitems of Windows ToolStripMenu to be Childform 1 and Childform 2. When I click to Childform 1 I want to show the Childform1 and when I click to Childform 2 to show the Childform2 and to hide (the other one). I can create the Items (runtime) but I cannot handle the click event since the object has been created runtime. Do you have any idea how to do it, or how to handle events of objects that has been created runtime.
-
Hi to everybody I use Visual Studio 2005. I have an MDI form and when I open child forms I want their instances to be entered in a ToolStripMenu named Windows. For example when I will open Childform1 and Childform2 I want the dropdownitems of Windows ToolStripMenu to be Childform 1 and Childform 2. When I click to Childform 1 I want to show the Childform1 and when I click to Childform 2 to show the Childform2 and to hide (the other one). I can create the Items (runtime) but I cannot handle the click event since the object has been created runtime. Do you have any idea how to do it, or how to handle events of objects that has been created runtime.