Hi VM,
"VM" <vo******@yahoo.com> wrote in message
news:uD**************@TK2MSFTNGP12.phx.gbl...
How can I display my own popup menu when a user right-clicks inside the
form? I know you use context menus but I don't how to implement them.
Thanks.
Drop a ContextMenu component onto the form designer from the toolbox.
Create an event handler for the MouseDown event of the form. Put code in the
MouseDown event handler that looks like this (this code assumes the
ContextMenu component is named mnuContext):
if (e.Button == MouseButtons.Right)
mnuContext.Show(this, new Point(e.X, e.Y));
Regards,
Daniel