Changes

Jump to: navigation, search

C Sharp Events and Event Parameters

6 bytes removed, 20:07, 28 January 2008
Identify Which Mouse Button was Clicked
After entering the above code press the '''F5''' to compile and run the application. Once tha program is running click at various points in the Form and watch the label change to report the co-ordinates of the click.
== Identify Which Identifying which Mouse Button was Clicked ==
Amongst the properties of the MouseClick EventArgs object was a property named ''Button'' which may be accessed to identify which mouse button was clicked.
[[Image:c_sharp_mouse_event_example.jpg|The C# MouseClick event example running]]
 
 
</pre>

Navigation menu