How to Detect Right Click on the Taskbar

Posted by Zay on Stack Overflow See other posts from Stack Overflow or by Zay
Published on 2010-04-02T02:52:41Z Indexed on 2010/04/02 3:03 UTC
Read the original article Hit count: 368

Filed under:
|
|
|
|

I've got a Windows Forms application in C# that starts off with a loading dialog. As expected, a button for the app shows up in the Windows taskbar.

I would like to detect right-clicks that might be done to that button.

Ultimately, I hope to disable the right-click or simply have the loading dialog regain focus. I've seen that some people use custom libraries and packages (interop, for example) to achieve some Win32 functionality, but I'd personally like to avoid this. Is it impossible to do without such libraries/packages?

© Stack Overflow or respective owner

Related posts about right-click

Related posts about taskbar