mouse right click....
-
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......
-
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......
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
-
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......
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'