Windows Develop Bookmark and Share   
 index > Windows Forms General > AllowMerge in ToolStrip don't work in .NET Framework v2.0.50727
 

AllowMerge in ToolStrip don't work in .NET Framework v2.0.50727

When I used previous version .NET Framework v2.0 Betta 2 it woked fine.
But today I intalled NET Framework v2.0.50727 and in MDI parent window ToolStrip from Child window don't merge!
Where the problem?
Labutin  Friday, October 28, 2005 8:00 AM
Example:

using System;

using System.Windows.Forms;

namespace Bug

{

public class MainWindow : Form

{

public MainWindow()

{

this.IsMdiContainer = true;

ToolStripButton tsb = new ToolStripButton("Parent");

ToolStrip ts = new ToolStrip();

ts.Items.Add(tsb);

ts.AllowMerge = true;

this.Controls.Add(ts);

Child ch = new Child();

ch.MdiParent = this;

ch.Show();

}

[STAThread]

public static void Main(string[] args)

{

Application.Run(new MainWindow());

}

}

public class Child : Form

{

public Child()

{

ToolStripButton tsb = new ToolStripButton("Child");

ToolStrip ts = new ToolStrip();

ts.Items.Add(tsb);

ts.AllowMerge = true;

ts.Visible = false;

this.Controls.Add(ts);

}

}

}

Labutin  Friday, October 28, 2005 9:05 AM

You can use google to search for other answers

Custom Search

More Threads

• minimizable and movable tab control
• Forms Property "Top Most"
• Do Not lost the selected text in a ComboBox making click on it
• WebBrowser Control With Java Applet
• DoDragDrop two data formats
• How to find and update the value in the hasttable
• Problem with Combobox Selected Index Changed event
• How to set DataGrid Cell Value
• Problem with Timer object
• Floating Window