Solved

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

Posted on 2010-09-09
2
775 Views
Last Modified: 2013-12-17
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.
0
Comment
Question by:mediasoftware
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
EdMonk earned 500 total points
ID: 33681727
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
 

Author Closing Comment

by:mediasoftware
ID: 33684308
Thank you for your answer EdMonk, that's all I was need to know.

Looking forward to work with you.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question