Results 1 to 9 of 9

Thread: How to disable the right click in all applications

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2000
    Posts
    175
    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?
    Mass

  2. #2
    Guest
    you could modify this a little to get what you want

    http://www.vbsquare.com/tips/tip400.html

  3. #3
    Guest
    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 '...

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jun 2000
    Posts
    175
    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.
    Mass

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jun 2000
    Posts
    175
    Isn't there anybody to help?

    I need to be able to dissable the right mouse popup menue Badly
    Mass

  6. #6
    New Member
    Join Date
    Aug 2000
    Location
    Austria
    Posts
    9

    Unhappy same problem!

    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...

  7. #7
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    How about a Windows hook? I think Yonatan is the guy to ask for this.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  8. #8
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    See if this helps you at all.

    D!m
    Dim

  9. #9
    Guest
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width