Solved

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

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

919 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

18 Experts available now in Live!

Get 1:1 Help Now