Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. mouse right click....

mouse right click....

Scheduled Pinned Locked Moved Visual Basic
helptutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    moomoooomoo
    wrote on last edited by
    #1

    good day to all... need help on the mouse click event... problem: 1.) how to invoke a mouse right click? same event when you right click windows... your help is highly appreciated... :-\ :-O :)

    start a new beginning in every ending; thats what life for......

    N S 2 Replies Last reply
    0
    • M moomoooomoo

      good day to all... need help on the mouse click event... problem: 1.) how to invoke a mouse right click? same event when you right click windows... your help is highly appreciated... :-\ :-O :)

      start a new beginning in every ending; thats what life for......

      N Offline
      N Offline
      nishkarsh_k
      wrote on last edited by
      #2

      I am not very clear about what do u want to know, i will tel u what i got out of your question 1 U want to have a right click event.. If so then every object has a right click event handler associated you can go to the codes and select the object and then right click the event handler will come 2 U want to have a menu coming on right click of an object then use ContextMenuStrip Hope this helps u Good luck

      1 Reply Last reply
      0
      • M moomoooomoo

        good day to all... need help on the mouse click event... problem: 1.) how to invoke a mouse right click? same event when you right click windows... your help is highly appreciated... :-\ :-O :)

        start a new beginning in every ending; thats what life for......

        S Offline
        S Offline
        Steven J Jowett
        wrote on last edited by
        #3

        You need to add an event handler for MosueDown to for your control, then test to see which mouse button is pressed. For example:- Private Sub myControl_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles myControl.MouseDown If e.Button = Windows.Forms.MouseButtons.Right Then 'Your code here End If

        Steve Jowett ------------------------- Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups