Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/328.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 使用鼠标左键拖动gmap_C#_Winforms_Gmap.net - Fatal编程技术网

C# 使用鼠标左键拖动gmap

C# 使用鼠标左键拖动gmap,c#,winforms,gmap.net,C#,Winforms,Gmap.net,我正在使用gmap.net控件在windows窗体上显示地图。到目前为止,除地图拖动功能外,所有功能都正常工作。通常,鼠标左键支持地图拖动,但在gmap.net控件中,鼠标右键支持拖动 我的问题是: 是否有任何方法可以使用鼠标左键实现地图拖动功能 请帮帮我 提前感谢。我找到了答案,它只是设置GMAP控件的DragButton属性 MainGMap.DragButton = MouseButton.Left; 根据已接受的答案,我必须将MouseButton更改为MouseButtons,以使其

我正在使用gmap.net控件在windows窗体上显示地图。到目前为止,除地图拖动功能外,所有功能都正常工作。通常,鼠标左键支持地图拖动,但在gmap.net控件中,鼠标右键支持拖动

我的问题是: 是否有任何方法可以使用鼠标左键实现地图拖动功能

请帮帮我


提前感谢。

我找到了答案,它只是设置
GMAP
控件的
DragButton
属性

MainGMap.DragButton = MouseButton.Left;

根据已接受的答案,我必须将
MouseButton
更改为
MouseButtons
,以使其正常工作:

MainGMap.DragButton = MouseButtons.Left;