摘要:转载自:http://www.cnblogs.com/fly_dragon/archive/2010/09/03/1817252.html 1 protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs ...
阅读全文
摘要:代码片段: a)声明实例 1.声明SQLCommand实例。1 SqlCommand cmd = new SqlCommand(); 2.声明SqlDataAdapter实例。1 SqlDataAdapter sdr = new SqlDat...
阅读全文
摘要:要实现的功能:判断第一个文本框中输入的是不是字符 “a”。最终效果:*当输入的不是a,控件旁会显示错误图标。当输入的是a,则错误图标会消失。首先添加ErrorProvider控件。代码: 1 private void textBox2_Leave(object sender, Eve...
阅读全文
摘要:运行效果:代码: 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using Syste...
阅读全文
摘要:RichTextBox文件格式不对: 原因:富文本框的LoadFile方法只支持RTF格式的文件或者标准的ASCII文本本档,,我们一般的文本文档是ANSI或者UTF-8的格式,所以,报这个错。 解决:解决办法:使用记事本编辑文本,然后保存为rtf格式文件。然后双击打开rtf文件进入rtf编辑页...
阅读全文
摘要:链接:http://www.iqiyi.com/w_19rraz39a1.html
阅读全文
摘要:skin皮肤和DLL程序及文件:下载链接:http://www.cnblogs.com/DebugLZQ/archive/2013/04/15/3021659.html
阅读全文
摘要:链接:http://www.cnblogs.com/DebugLZQ/archive/2013/04/15/3021629.html
阅读全文
摘要:最终效果:代码: 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using Syste...
阅读全文
摘要:1 private bool IsNum(string str) 2 { 3 try 4 { 5 foreach (char c in str) 6 { 7 ...
阅读全文