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