Hi,
I want to execute (call) an eventhandler of an object. In this case a
menu item. I want to see which item is checked and the checked one has
to execute the Click event handler, as it was clicked. But I'm a little
lost on how to call it.
ToolStripMenuItem item;
for (int i = 0; i < viewToolStripMenuItem.DropDownItems.Count; i++) {
item = (ToolStripMenuItem)viewToolStripMenuItem.DropDownI tems[i];
if (item.Checked) {
; // Here I want to call the event handler Click from this menu
// as it was clicked.
return;
}
}
--
rgds, Wilfried [MapPoint MVP]
http://www.mestdagh.biz