Solved

How do I create a Menu Item for Open Windows

Posted on 2004-10-30
194 Views
Last Modified: 2010-04-15
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
Question by:kevon
    2 Comments
     
    LVL 2

    Accepted Solution

    by:
    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
     

    Author Comment

    by:kevon
    I can't believe how easy that was!!!  Grrr.

    Thanks Andre.  Look for more questions soon  :)
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Introduction                                                 Was the var keyword really only brought out to shorten your syntax? Or have the VB language guys got their way in C#? What type of variable is it? All will be revealed.   Also called…
    Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    933 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now