会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Ji Nerd
博客园
首页
新随笔
联系
管理
订阅
2014年9月2日
C# 复制内容到剪切板
摘要: Clipboard.Clear();//清空剪切板内容Clipboard.SetData(DataFormats.Text, "复制内容");//复制内容到剪切板
阅读全文
posted @ 2014-09-02 08:55 Ji Nerd
阅读(1603)
评论(0)
推荐(0)
2014年8月25日
C# GMap.Net 计算多边形面积
摘要: 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
阅读(3118)
评论(0)
推荐(0)
C#如何获取鼠标相对当前窗口的坐标
摘要: 可以用Control.MousePosition获得当前鼠标的坐标,使用PointToClient计算鼠标相对于某个控件的坐标,如下1 Point screenPoint = Control.MousePosition;//鼠标相对于屏幕左上角的坐标2 Point formPoint = this....
阅读全文
posted @ 2014-08-25 08:54 Ji Nerd
阅读(346)
评论(0)
推荐(0)
2014年8月23日
经纬度和墨卡托互相转换
摘要: 1 //经纬度转墨卡托 2 public MapPoint lonLat2Mercator(MapPoint lonLat) 3 { 4 MapPoint mercator = new MapPoint(); 5 do...
阅读全文
posted @ 2014-08-23 15:37 Ji Nerd
阅读(848)
评论(1)
推荐(0)
asp.net(c#) 通过两个点的经纬度计算距离
摘要: 原理:地球赤道上环绕地球一周走一圈共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
阅读(1074)
评论(0)
推荐(0)
2014年8月21日
C#中怎么对double型取两位小数。
摘要: 例: Double a = 2.1234567; Math.Round(a,2);
阅读全文
posted @ 2014-08-21 10:25 Ji Nerd
阅读(771)
评论(0)
推荐(0)
GMap.NET 学习(一)添加marker和polygon
摘要: 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
阅读(2164)
评论(0)
推荐(0)
公告