[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 204
  • Last Modified:

How do I create a Menu Item for Open Windows

Hello again all,

I would like to add to my menu a "Window" functionality, much like any other Microsoft "Window" menu item.

Requirements:

Whenever a new "Window" (in my case a c# Form object) is created it is added to the bottom of the "Window" menu list under a seperator bar.  When clicked it changes focus to the "Window" (form) selected from the menu.  If too many "Windows" are open, it opens a dialogue box instead, with a list of currently open "Windows" and allows you to Activate, Save, or Close the window selected in the list box.

If there is a solution to this already posted on the web somewhere, a link is sufficient to earn the points for this.  I can't imagine that someone hasn't already asked this question, I just can't find the answer.

I already have the menu, including the Window selection, and Tile Vertically, Tile Horizontally, Cascade and the seperator bar....  all I need is instructions on how to do the rest dynamically.
0
kevon
Asked:
kevon
1 Solution
 
AndreiPociuCommented:
Here's how to show the windows you have in your MDI form in a menu:

http://www.geekpedia.com/tutorial99_Building-menus-with-MainMenu.html

(at the end of the tutorial)

Another tutorial which is somewhat similiar:

http://www.geekpedia.com/tutorial41_Using-MDI.html
0
 
kevonAuthor Commented:
I can't believe how easy that was!!!  Grrr.

Thanks Andre.  Look for more questions soon  :)
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now