Solved

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

Posted on 2010-09-09
2
764 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
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now