摘要: Clipboard.Clear();//清空剪切板内容Clipboard.SetData(DataFormats.Text, "复制内容");//复制内容到剪切板 阅读全文
posted @ 2014-09-02 08:55 Ji Nerd 阅读(1554) 评论(0) 推荐(0) 编辑
摘要: Cédric Bignon :Let's note Points the points of the polygon (where Points[0] == Points[Points.Count - 1] to close the polygon).The idea behind the next... 阅读全文
posted @ 2014-08-25 10:12 Ji Nerd 阅读(2947) 评论(0) 推荐(0) 编辑
摘要: 可以用Control.MousePosition获得当前鼠标的坐标,使用PointToClient计算鼠标相对于某个控件的坐标,如下1 Point screenPoint = Control.MousePosition;//鼠标相对于屏幕左上角的坐标2 Point formPoint = this.... 阅读全文
posted @ 2014-08-25 08:54 Ji Nerd 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 1 //经纬度转墨卡托 2 public MapPoint lonLat2Mercator(MapPoint lonLat) 3 { 4 MapPoint mercator = new MapPoint(); 5 do... 阅读全文
posted @ 2014-08-23 15:37 Ji Nerd 阅读(827) 评论(1) 推荐(0) 编辑
摘要: 原理:地球赤道上环绕地球一周走一圈共40075.04公里,而@一圈分成360°,而每1°(度)有60,每一度一秒在赤道上的长度计算如下: 40075.04km/360°=111.31955km 111.31955km/60=1.8553258km=1855.3m 而每一分又有60秒,每一秒就代... 阅读全文
posted @ 2014-08-23 10:04 Ji Nerd 阅读(998) 评论(0) 推荐(0) 编辑
摘要: 例: Double a = 2.1234567; Math.Round(a,2); 阅读全文
posted @ 2014-08-21 10:25 Ji Nerd 阅读(716) 评论(0) 推荐(0) 编辑
摘要: GMap.NETis great and Powerful, Free, cross platform, open source .NET control. Enable userouting,geocoding,directionsandmapsfrom Coogle, Yahoo!, Bing,... 阅读全文
posted @ 2014-08-21 09:24 Ji Nerd 阅读(2010) 评论(0) 推荐(0) 编辑