摘要:
事由:开始用vs2008.在vs2005下复制相关代码PicDir = Application.StartupPath & "\SmallPic"2008中提示有误。 vs2008没法直接用Application.StartupPath找了一下才明白,原来Application对象是来源于:System.Windows.Forms ,以前vs2005都直接调用的。以后最好用:System.AppDomain.CurrentDomain.BaseDirectory 不过要注意路径最后多了一个“ \”值得注意: PicDir = IO.Path.Combine(AppD 阅读全文
随笔档案-2012年5月26日
2012/5/26日志
2012-05-26 16:57 by javaspring, 252 阅读, 收藏,
摘要:
1 想在winform中显示map及各种操作等: 方法一: 可以在winform上使用webBrowser的,然后webBrowser的url属性指向本地的某一个你需要的.html文件. 方法二: 可以在winform上使用webBrowser的,然后设置url的属性指向“http://.....”. 但是对于第一种方法而言,绝对地址很容易造成麻烦,解决的方案: string address=System.AppDomain.CurrentDomain.BaseDirectory+"baidumap.html"; this.webBrowser1.Url = new Sys 阅读全文
浙公网安备 33010602011771号