i have made a customdraw MenuStrip and with this code, i added regular buttons to it.
how can i add a dropdown menu property too the class below?
i wanna add dropdown item via designer.
kind regards and thanx for reading
[ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.All)]
//Declare a class that inherits from ToolStripControlHost.
public class ToolStripMenuButton : ToolStripControlHost
{
// Call the base constructor passing in a MonthCalendar instance.
public ToolStripMenuButton() : base(new Button()) { }
public Button ToolStripMenuButtonControl
{
get
{
return Control as Button;
}
}
}