Yes its possible, use the SourceControl property of the ContextMenuStrip. The following code snippet shows how to get the ContextMenuStrip when handling a ToolStripMenuItem Click event (and set the combo box selected index to -1):
private void someToolStripMenuItem_Click(object sender, EventArgs e)
{
ToolStripMenuItem item = (ToolStripMenuItem)sender;
ContextMenuStrip strip = (ContextMenuStrip)item.Owner;
((ComboBox)strip.SourceControl).SelectedIndex = -1;
}
/Calle
- Still confused, but on a higher level -