随笔分类 -  C#

CSharp .net
C# TextBox控件之大小写自动转换
摘要:VS开发C#程序时TextBox的属性中有个Charactercasing属性:默认为normal,把它改为Upper,这样无论你输入的是大写还是小写,在文本框中显示出的都是大写,如果改为Lower的话就是小写.还可以使用如下方法实现:1 private void textBox1_KeyPress... 阅读全文

posted @ 2014-11-21 15:54 teolvp 阅读(2143) 评论(0) 推荐(1)

显示外网IP
摘要:http://ws.sj.qq.com/webservices/ipAddress.do 阅读全文

posted @ 2014-06-10 12:24 teolvp 阅读(200) 评论(0) 推荐(0)

gridControl gridView响应右键菜单
摘要:增加一个PopupMenu并编辑相关菜单项,然后在gridView的MouseUp事件里写如下代码:private void gridView1_MouseUp(object sender, MouseEventArgs e){ //鼠标右键响应 GridView detailGrid = (sender as GridView);GridHitInfo hitInfo = (detailGrid.CalcHitInfo((e as MouseEventArgs).Location)); // DevExpress.XtraGrid.Views.Grid.ViewInfo... 阅读全文

posted @ 2014-03-04 04:03 teolvp 阅读(520) 评论(0) 推荐(0)

“System.AccessViolationException”类型的未经处理的异常在 System.Data.dll 中发生
摘要:“System.AccessViolationException”类型的未经处理的异常在System.Data.dll中发生其他信息:尝试读取或写入受保护的内存。这通常指示其他内存已损坏。解决方法管理员身份:netsh winsock reset 阅读全文

posted @ 2014-02-06 16:34 teolvp 阅读(2635) 评论(1) 推荐(0)

导航