摘要: 17、禁用超链接超链接分为两种,一种是 当前窗口直接转向, 一种是 在新窗口中打开 当然窗口直接转向:将 WebBrowser 的 AllowNavigation 设为 false 在新窗口中打开:禁用新窗口打开,需要处理 WebBrowser 的 NewWindow 事件 private void 阅读全文
posted @ 2019-03-08 10:32 文龙再现 阅读(890) 评论(0) 推荐(0) 编辑
摘要: public static bool isnumber(string s) { if (string.IsNullOrWhiteSpace(s)) return false; if (s.Substring(0,1) == "0") return false; const string patter 阅读全文
posted @ 2019-03-05 15:29 文龙再现 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 构造函数 SpeechSynthesizer() 初始化 SpeechSynthesizer 类的新实例。 初始化 SpeechSynthesizer 类的新实例。 属性 Rate 获取或设置 SpeechSynthesizer 对象的语速。 State 获取 SpeechSynthesizer 对 阅读全文
posted @ 2019-03-04 09:26 文龙再现 阅读(1432) 评论(0) 推荐(0) 编辑
摘要: 注:由于加密、解密字符串时,需要用到加密类和内存流,所以首先需要在命名空间区域添加System.Security.Cryptography和System.IO命名空间。 //自定义的加密字符串 static string encryptKey = "1234"; //字符串加密 static str 阅读全文
posted @ 2019-03-02 11:32 文龙再现 阅读(365) 评论(0) 推荐(0) 编辑
摘要: 1. date和datetime类型的区别 date是SQL Server 2008新引进的数据类型。它表示一个日期,不包含时间部分,可以表示的日期范围从公元元年1月1日到9999年12月31日。只需要3个字节的存储空间。 dateTime 日期和时间部分,可以表示的日期范围从公元1753年1月1日 阅读全文
posted @ 2019-03-01 14:44 文龙再现 阅读(2148) 评论(0) 推荐(0) 编辑
摘要: private void dataGridView1_CellPainting(object sender, DataGridViewCellPaintingEventArgs e) { if (e.RowIndex > -1) { int intGrade = Convert.ToInt32(th 阅读全文
posted @ 2019-02-28 01:02 文龙再现 阅读(218) 评论(0) 推荐(0) 编辑
摘要: DialogResult result = MessageBox.Show("确认删除?", "温馨提示", MessageBoxButtons.OKCancel); if (result == DialogResult.OK) { //执行删除语句 MessageBox.Show("删除资产成功! 阅读全文
posted @ 2019-02-28 00:30 文龙再现 阅读(194) 评论(0) 推荐(0) 编辑
摘要: DateTime dt = new DateTime(2017,4,1,13,16,32,108);string.Format("{0:y yy yyy yyyy}",dt); //17 17 2017 2017string.Format("{0:M MM MMM MMMM}", dt);//4 0 阅读全文
posted @ 2019-02-26 10:47 文龙再现 阅读(127) 评论(0) 推荐(0) 编辑
摘要: [DllImport("user32.dll", CharSet = CharSet.Auto)] private static extern int SetWindowPos(IntPtr hWnd, int hWndInsertAfter, int x, int y, int Width, in 阅读全文
posted @ 2019-02-24 15:18 文龙再现 阅读(264) 评论(0) 推荐(0) 编辑
摘要: USE ys;goCREATE TABLE #temp (表名 sysname,记录数 int,保留空间 Nvarchar(10),使用空间 varchar(10),索引使用空间 varchar(10),未用空间 varchar(10))EXEC sp_MSforeachtable 'insert 阅读全文
posted @ 2019-02-24 15:08 文龙再现 阅读(234) 评论(0) 推荐(0) 编辑