随笔分类 -  Winform

上一页 1 2 3 4

Asp.Net中GridView加入鼠标滑过的高亮效果和单击行颜色改变
摘要:转载自:http://www.cnblogs.com/fly_dragon/archive/2010/09/03/1817252.html 1 protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs ... 阅读全文

posted @ 2015-04-08 21:12 ultrastrong 阅读(435) 评论(0) 推荐(0)

Sql 参数的使用
摘要:代码片段: a)声明实例 1.声明SQLCommand实例。1 SqlCommand cmd = new SqlCommand(); 2.声明SqlDataAdapter实例。1 SqlDataAdapter sdr = new SqlDat... 阅读全文

posted @ 2015-04-05 17:04 ultrastrong 阅读(983) 评论(0) 推荐(0)

Winform ErrorProvider控件使用
摘要:要实现的功能:判断第一个文本框中输入的是不是字符 “a”。最终效果:*当输入的不是a,控件旁会显示错误图标。当输入的是a,则错误图标会消失。首先添加ErrorProvider控件。代码: 1 private void textBox2_Leave(object sender, Eve... 阅读全文

posted @ 2015-04-05 16:34 ultrastrong 阅读(933) 评论(0) 推荐(0)

WinForm 小程序 NotePad
摘要:运行效果:代码: 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using Syste... 阅读全文

posted @ 2015-04-05 14:24 ultrastrong 阅读(387) 评论(0) 推荐(0)

解决 RichTextBox 文件格式不对问题
摘要:RichTextBox文件格式不对: 原因:富文本框的LoadFile方法只支持RTF格式的文件或者标准的ASCII文本本档,,我们一般的文本文档是ANSI或者UTF-8的格式,所以,报这个错。 解决:解决办法:使用记事本编辑文本,然后保存为rtf格式文件。然后双击打开rtf文件进入rtf编辑页... 阅读全文

posted @ 2015-04-05 12:13 ultrastrong 阅读(970) 评论(0) 推荐(0)

WinForm 应用程序的打包与部署
摘要:链接:http://www.iqiyi.com/w_19rraz39a1.html 阅读全文

posted @ 2015-04-05 10:16 ultrastrong 阅读(209) 评论(0) 推荐(0)

更换Winform 皮肤(下)----完全GDI+绘制
摘要:skin皮肤和DLL程序及文件:下载链接:http://www.cnblogs.com/DebugLZQ/archive/2013/04/15/3021659.html 阅读全文

posted @ 2015-04-05 09:46 ultrastrong 阅读(185) 评论(0) 推荐(0)

更换Winform 皮肤(上)----使用现有皮肤
摘要:链接:http://www.cnblogs.com/DebugLZQ/archive/2013/04/15/3021629.html 阅读全文

posted @ 2015-04-05 09:45 ultrastrong 阅读(171) 评论(0) 推荐(0)

WinForm----DataGridview---连接数据库,以及双击一条数据,显示信息到Label控件,也可以是TextBox控件。
摘要:最终效果:代码: 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using Syste... 阅读全文

posted @ 2015-04-02 22:39 ultrastrong 阅读(491) 评论(0) 推荐(0)

winform判断输入是否是数字
摘要:1 private bool IsNum(string str) 2 { 3 try 4 { 5 foreach (char c in str) 6 { 7 ... 阅读全文

posted @ 2015-03-18 09:22 ultrastrong 阅读(838) 评论(0) 推荐(0)

上一页 1 2 3 4