if you add a item from the following code to a MenuStrip and double click it, nothing happens.
i'm trying to achieve, like any standart button/toolstripitem, if you double click it, the designer automaticly add a click even to your code.
but this doesn't.
#region ToolStripMenuButton
[ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.All)]
//Declare a class that inherits from ToolStripControlHost.
public class ToolStripMenuButton : ToolStripControlHost
{
public ToolStripMenuButton() : base(new Button())
{
}
public Button ToolStripMenuButtonControl
{
get
{
return Control as Button;
}
}
}
#endregion