Hi
I need to disable the right click in my program so it dos not activate the popup menu.
I searched for it and saw some code but I could not use them because of some code like If (IsWindow(m_lhWnd) <> 0)
Can anyone please help?
Printable View
Hi
I need to disable the right click in my program so it dos not activate the popup menu.
I searched for it and saw some code but I could not use them because of some code like If (IsWindow(m_lhWnd) <> 0)
Can anyone please help?
you could modify this a little to get what you want
http://www.vbsquare.com/tips/tip400.html
Try dropping the <> 0. And assuming you are referring to the Popup menu? thread:
Code:Private Declare Function IsWindow Lib "user32" (ByVal hWnd As Long) As Long
If (IsWindow(m_lhWnd)) Then '...
Thanks All,
I tried the codes but they do not work on any other applications or I could'nt get it to work.
As Matthew pointed out I want to disable the right click in
order to Stop the popup menu poping up,but I want it to work on desktop and any other application that is active.
Isn't there anybody to help?
I need to be able to dissable the right mouse popup menue Badly
i have the same problem, i included a flash4 movie into a vb6 app and want to avoid that the flashinfo popup menu appears when clicking with the right mouse button.
can anybody solve that problem?
that would be great...
thank you...
How about a Windows hook? I think Yonatan is the guy to ask for this.
See if this helps you at all.
D!m
parksie, window hooking requires subclassing and you can only do it for your program, not other Windows.
The link Dim gave is probably the closest anyone is going to get. There is no way to disable every right click menu in Windows, at least not that I know of.