.
To add a Custom ToolStrip, you will need to use the INavContext interface. Here is an example assuming your class instance of INavContext is named "mNav."
private void CreateCustomToolstrip()
{
ICustomToolstrip toolstrip = mNav.CreateCustomToolstrip("NavPlugin");
toolstrip.AddToolStripButton("Button", null, button_click);
toolstrip.AddToolStripButton("Press", "DemoPlugin/Icons/MonthlyViewHS.png", button_click);
System.Windows.Forms.ToolStripComboBox tscb = toolstrip.AddToolStripCombobox("dropdown");
tscb.Items.Add("blue");
tscb.Items.Add("green");
}
private void button_click(object sender, EventArgs e)
{
System.Windows.Forms.MessageBox.Show("Menustrip click!");
}
Note: The Custom ToolStrip is only visible when the UI interface is in "Tool Strip" mode.