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. C#
  4. Dissable left click (Only on a trackBar)

Dissable left click (Only on a trackBar)

Scheduled Pinned Locked Moved C#
2 Posts 2 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.
  • G Offline
    G Offline
    gwithey
    wrote on last edited by
    #1

    I have created a windows form to represent a real life joystick, i have represented the x and y axis with click and drag. With a track bar to represent z axis. ( Activated with mouse wheel) Currently the trackbar is enabled when the middle button is clicked and dissabled when clicked again. I am just looking for a way to dissable the left click on the trackbar control as left click on the form should represent the x and y axis with middle click then scroll representing z. Thanx George

    C 1 Reply Last reply
    0
    • G gwithey

      I have created a windows form to represent a real life joystick, i have represented the x and y axis with click and drag. With a track bar to represent z axis. ( Activated with mouse wheel) Currently the trackbar is enabled when the middle button is clicked and dissabled when clicked again. I am just looking for a way to dissable the left click on the trackbar control as left click on the form should represent the x and y axis with middle click then scroll representing z. Thanx George

      C Offline
      C Offline
      codemunkeh
      wrote on last edited by
      #2

      Add an event for MouseDown or MouseUp... You can check against the .Button property of the MouseEventArgs if it's the middle that was pressed. Also: You could use a MouseMove, and compare against the buttons there. So you could drag it around.


      Ninja (the Nerd)
      Confused? You will be...

      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