Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private const int WMTaskbarRClick = 0x0313;
- protected override void WndProc(ref Message m)
- {
- switch (m.Msg)
- {
- case WMTaskbarRClick:
- {
- // Show your own context menu here, i do it like this
- // there's a context menu present on my main form so i use it
- MessageBox.Show("I see that.");
- break;
- }
- default:
- {
- base.WndProc(ref m);
- break;
- }
- }
- }
Add Comment
Please, Sign In to add comment