VB.NET 2008 - Intercept right click menu in windows 7 taskbar

I am developing an application in VB.NET 2008 on Windows 7, having a Form with no Title Bar (FormBorderStyle = None, and ShowInTaskbar = True), and I need to intercept and prevent from showing the right click context menu, for my application, in windows 7 taskbar.

Is there any way to intercept WM_CREATE or WM_ACTIVATE messages, or any other useful messages in WndProc ?

I found an example for intercepting those messages, I don't know if it really helps for my exact request, in C#, on this page:

http://www.winvistaside.de/forum/index.php?showtopic=3212


I really need help.
Thank you in advance.
mediasoftwareAsked:
Who is Participating?
 
EdMonkConnect With a Mentor Commented:
On your form you need to override the WndProc method.

Here is a list of the enums to help you find the right message - http://www.pinvoke.net/default.aspx/Constants/WM.html
0
 
mediasoftwareAuthor Commented:
Thank you for your answer EdMonk, that's all I was need to know.

Looking forward to work with you.
0
All Courses

From novice to tech pro — start learning today.