随笔分类 -  VB.NET

winform 控件的Focus()方法
摘要:今天项目中Form Load 要默认textbox 的Focus ,可是设定了Focus()却没有成功。网上查找方法,只需在Focus前加上,Me.show ,即让Form 选择显示出来。可参考:http://www.cnblogs.com/michaellee/archive/2008/01/25/1053366.html 阅读全文

posted @ 2011-09-05 15:33 AndyCai 阅读(1026) 评论(0) 推荐(0)

C#中AppDomain.CurrentDomain.BaseDirectory与Application.StartupPath的区别
摘要:C#中AppDomain.CurrentDomain.BaseDirectory与Application.StartupPath的区别 2011-03-08 17:40 // 获取程序的基目录。System.AppDomain.CurrentDomain.BaseDirectory // 获取模块的完整路径。System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName // 获取和设置当前目录(该进程从中启动的目录)的完全限定目录。System.Environment.Cu... 阅读全文

posted @ 2011-08-25 09:39 AndyCai 阅读(21052) 评论(1) 推荐(1)

vb.net 几个数据类型的默认值
摘要:VB.net 中定义的数据类型如果没有手动设置默认值,系统会有默认值,使用时需要注意Dim intTest As IntegerDim boolTest As BooleanDim dateTest As DateDim objTest As Object默认intTest = 0 , boolTest 为false , dateTest 为 1/1/0001 12:00:00 AM, objTest 为nothing 阅读全文

posted @ 2011-07-11 10:51 AndyCai 阅读(720) 评论(0) 推荐(0)

VB.Net 中写Log 的方法
摘要:最近在项目中有用到写Log 的功能.用VB.Net写的.如下: [代码] 阅读全文

posted @ 2009-05-04 10:51 AndyCai 阅读(1657) 评论(0) 推荐(0)

导航