Is there a COUNTERPARTto VB6 Menu"s "WindowList" option in VB.NET???

Is there a COUNTERPARTto VB6 Menu"s "WindowList" option in VB.NET???

am 23.12.2007 21:56:55 von Alan Mailer

When adding a new Menu to a VB6 application, a developer had the
option of designating the Menu as a 'WindowList' Menu. By choosing
this option at Design time, it enabled this particular menu at Runtime
to automatically list as SubMenus the 'caption' of every Window (or
Form) that was currently open in the application.

At Runtime, a user of my application could then just click on one of
the 'captions' in the SubMenus to immediately make active on the
screen the window which carried that caption.

I'm writing to ask if Visual Studio 2005 VB.Net has a counterpart to
this.

If it does, I would like somebody to direct me to what it is.

On the other hand, if it doesn't, I would like a suggestion as to how
one goes about this in VB.Net.

Thanks in advance for your feedback.

Re: Is there a COUNTERPARTto VB6 Menu"s "WindowList" option in VB.NET???

am 23.12.2007 23:46:28 von Jeff Gaines

On 23/12/2007 in message <03itm3h3m2jf2ep9slsi5bflm9dd96ntjo@4ax.com> Alan
Mailer wrote:

>When adding a new Menu to a VB6 application, a developer had the
>option of designating the Menu as a 'WindowList' Menu. By choosing
>this option at Design time, it enabled this particular menu at Runtime
>to automatically list as SubMenus the 'caption' of every Window (or
>Form) that was currently open in the application.

Do you mean an MDI application? If so:
The main form needs 'IsMDIContainer' set to true.
Add a MenuStrip with a menu item called, say, mnuWindow with text 'Window'
Select the *main* menu strip (took me a while to figure that out) and set
'MDIWindowListItem' to 'mnuWindow'.

You then need to design a child form and a 'New' menu item which calls:

private void mnuFileNew_Click(object sender, EventArgs e)
{
FormChild frmChild = new FormChild();
// Set the Parent Form of the Child window.
frmChild.MdiParent = this;
// Display the new form.
frmChild.Show();
}
That's in C# but just leave the punctuation out and it's VB :-)

You will then find the window list automagically added to the 'Window'
menu. You can then add layout options.

--
Jeff Gaines