>>So, which is it that you're trying to accomplish? The visible clicking or just the >>resulting code firing?
I'm trying to get some code to execute. This code is part of the Mere Mortals Framework. The code to be executed is in an event handler, which is bound the the MenuItem.Popup event. In the MM code, it's done like this:
this.CurrentMenuItem.Popup += new EventHandler(this.OnClick);
So, I need to get my MenuItem's .Popup event to fire so the code in "this.OnClick" will run. Clicking, or simulating a click will not work, because the MenuItem has no sub-items, so .Popup never fires.
If C# had a "raise" keyword, then I could just do
raise myMenuItem.Popup
Thanks,
Mike