Click here to Skip to main content
16,020,103 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have the following method
C#
private void Window_MouseDown(object sender, MouseButtonEventArgs e)
       {
           if (e.ChangedButton == MouseButton.Left)
               this.DragMove();
       }


and this event
C#
this.MouseRightButtonDown += new MouseButtonEventHandler(Window_MouseDown);


I noticed that DragMove only uses Left Click, what can I do?

Instead of using the left button I would like to use the right button.

What I have tried:

I have tried changing
C#
this.MouseRightButtonDown += new MouseButtonEventHandler(Window_MouseDown);


C#
private void Window_MouseDown(object sender, MouseButtonEventArgs e)
       {
           if (e.ChangedButton == MouseButton.Right)
               this.DragMove();
       }
Posted
Updated 28-Apr-16 0:33am

1 solution

Hi, just check this post, its working.......
DragMove() with right mouse button?[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900