Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gmap dragging using left mouse button

I'm using the gmap.net control to display the maps on windows forms.as of now everything works fine except the map dragging functionality.in general map dragging is supported with Left-Mouse Button , but in gmap.net control dragging is supported with Right-Mouse button.

Here my question is : Is there any way by which I can achieve the Map Dragging functionality using Left-Mouse Button.

Please Help Me.

Thanks in Advance.

like image 290
Sudhakar Tillapudi Avatar asked Oct 26 '13 16:10

Sudhakar Tillapudi


2 Answers

I have found the answer, it is just setting the DragButton property of GMAP control

MainGMap.DragButton = MouseButton.Left;
like image 55
Sudhakar Tillapudi Avatar answered Oct 23 '22 06:10

Sudhakar Tillapudi


Based on the accepted answer, I had to change MouseButton to MouseButtons for it to work:

MainGMap.DragButton = MouseButtons.Left;
like image 24
Sviat Lavrinchuk Avatar answered Oct 23 '22 07:10

Sviat Lavrinchuk