Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

populate toolstripitems to combobox

item1ToolStripMenuItem.Click += new System.EventHandler(ToolStripMenuItem_Click);
item2ToolStripMenuItem.Click += new System.EventHandler(ToolStripMenuItem_Click);
item3ToolStripMenuItem.Click += new System.EventHandler(ToolStripMenuItem_Click);

private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
  comboBox1.SelectedIndex = comboBox1.FindString(((ToolStripMenuItem)sender).Text);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #populate #toolstripitems #combobox
ADD COMMENT
Topic
Name
7+9 =