How to invoke a custom command in the context menu

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I created a context menu. But I don't know how to link each command to my
event handler. Any idea?

Thanks in advance!!!
Cindy
 
Hi Cindy,

I may have misunderstood your problem, but attach each MenuItem.Click to the appropriate eventhandler.

contextMenuFileSave.Click += new EventHandler(regularMenuFileSave);
 
Back
Top