S
Seefor
I have a custom control which has a ContextMenu property like so:
public class MyControl : Control
{
ContextMenu _contextMenu;
public ContextMenu Menu
{
get { return _contextMenu; }
set { _contextMenu = value; }
}
I want to display this context menu when the user holds the mouse button
down on my control for a while (like a ListBox context menu would work).
How can I detect when the user has held down the mouse so that I can call
the ContextMenu's Show method, and how can I make that lovely red circle
appear on the PDA when they do?
TIA
public class MyControl : Control
{
ContextMenu _contextMenu;
public ContextMenu Menu
{
get { return _contextMenu; }
set { _contextMenu = value; }
}
I want to display this context menu when the user holds the mouse button
down on my control for a while (like a ListBox context menu would work).
How can I detect when the user has held down the mouse so that I can call
the ContextMenu's Show method, and how can I make that lovely red circle
appear on the PDA when they do?
TIA