Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You have to write your code so that it is added manually I believe.</p> <p>See the example here for pointers:</p> <p><a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.toolstrippanel.aspx" rel="nofollow noreferrer">MSDN help on ToolStripPanel</a></p> <p><strong><em>Edit</em></strong></p> <p>You're right <strong>ignore my previous entry</strong> here's the code for a very simple MDI app that appears to do what your after.</p> <p>It is just two blank forms. Form1 has <code>IsMDIContainer=true</code>. It also has <code>menuStrip1</code>, which contains two items "new" (<code>newToolStripMenuItem</code>) and "windows" (<code>windowsToolStripMenuItem</code>). Clicking new will open a new child window. I have set the <code>MDIWindowListItem</code> of <code>menuStrip1</code> to <code>windowsMenuStripItem</code>. When a new child window is opened clicking on <code>windowsMenuStripItem</code> produces a drop down that shows all windows open.</p> <pre><code>namespace WindowsFormsApplication1 { public partial class Form1 : Form { private int count; public Form1() { InitializeComponent(); } private void newToolStripMenuItem_Click(object sender, EventArgs e) { count++; //Set a window title text as this is what is shown in the window list. Form2 newForm = new Form2() { Text = string.Format("Window {0}", count) }; newForm.MdiParent = this; newForm.Show();//&lt;--- this needed to show window in list. } } } </code></pre> <p>There is no code in Form2.</p> <p>The child windows only show below <code>windowMenuStripItem</code> once Form.Show() has been called. Without this they do not show in the list.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload