activating mdi child

digita

Active member
Joined
Jul 8, 2004
Messages
29
Programming Experience
1-3
I have created an mdi form, both parent and child. Now i want to add some navigation, I already have the tile horizontally en verticaly. Now i want to make something like there is in Microsoft Word, that means that you can select a certain document and then give it focus.

I mean like this:

You can select the document on the bottom, and if there were a second document there was an entry Document2.
But how do I do that?
 
Create a new menu item on the MenuStrip and name it for example "Window". Select the MenuStrip and assign the MdiWindowListItem property.
 
Thanks!
Now i have another question: is there also a way to activate an mdi child through code e.g. clicking a button or tab.
I'm using mdi to load other forms and I display them in tabs. I prevented that they can be opened more than once, but now I to activate the mdi child when the form is opened.
So, is there somekind of method or action?
 
If your reference to the form instance is 'f' you can call f.Activate()
 
Back
Top