tangtang615  

2016年4月13日

摘要: 修改PROJECT表中的字段,保存时,弹出上面的窗体,无法保存。 解决方法为:【工具】->【选项】->【设计器】中,去掉“阻止保存要求重新创建表的更改”前的勾选。 阅读全文
posted @ 2016-04-13 15:08 tangtang 阅读(6318) 评论(0) 推荐(0) 编辑

2009年8月14日

摘要: 1,连接mysql数据库管理器:[代码]2,插入数据: [代码]3,执行脚本文件:[代码]4,获取mysql的获取数据库中的所有表和视图名(在mysql.data.dll):show tables5, 获取mysql数据库中当前表的所有字段名(在mysql.data.dll):[代码]6,mysql根据表名添加字段(在mysql.data.dll):[代码]7,导出mysql数据库icms的数据:... 阅读全文
posted @ 2009-08-14 10:29 tangtang 阅读(531) 评论(0) 推荐(0) 编辑

2009年4月15日

摘要: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 无标题页 1 2 3 阅读全文
posted @ 2009-04-15 00:26 tangtang 阅读(425) 评论(0) 推荐(0) 编辑

2009年3月24日

摘要: 1,执行脚本文件,将MySQL数据导入MySQL数据库: 代码如下: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 从注册表例查询出MySQL.exe的安装路径!#region 从注... 阅读全文
posted @ 2009-03-24 19:03 tangtang 阅读(455) 评论(1) 推荐(1) 编辑
 
摘要: 1,验证IP地址: Regex regexIP = new Regex(@"^((0|1[0-9]{0,2}|2[0-9]{0,1}|2[0-4][0-9]|25[0-5]|[3-9][0-9]{0,1})\.){3}(0|1[0-9]{0,2}|2[0-9]{0,1}|2[0-4][0-9]|25[0-5]|[3-9][0-9]{0,1})$"); 2,验证guid: strQuery = Re... 阅读全文
posted @ 2009-03-24 18:57 tangtang 阅读(277) 评论(0) 推荐(0) 编辑

2009年3月12日

摘要: 1,首先对选定的文本框添加KeyPress事件. 2,在事件里写下以下代码: Regex re = new Regex(@"^[0-9a-zA-Z_.]+$");//正则表达式 验证英文、数字、下划线和点 if (!re.IsMatch(e.KeyChar.ToString()) && (e.KeyChar!= 8))// "8"... 阅读全文
posted @ 2009-03-12 15:56 tangtang 阅读(492) 评论(0) 推荐(0) 编辑

2009年3月9日

摘要: 1,#region 设置EXCEL格式 /// /// 设置EXCEL自动格式 /// /// /// private static void SetWrap(Excel.Worksheet sheet, int nRowIndex) { for (int... 阅读全文
posted @ 2009-03-09 19:03 tangtang 阅读(626) 评论(0) 推荐(0) 编辑
 
摘要: 1,将一些文本框里的值写入xml文件(即保存在xml文件里),如下: XmlDocument xmlDoc = new XmlDocument(); XmlDeclaration xmlDec = xmlDoc.CreateXmlDeclaration("1.0", "utf-8", null); ... 阅读全文
posted @ 2009-03-09 18:55 tangtang 阅读(213) 评论(0) 推荐(0) 编辑
 
摘要: 1,在你的点击事件里写下如下代码: System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.EnableRaisingEvents = false; proc.StartInfo.FileName = "winword"; ... 阅读全文
posted @ 2009-03-09 17:24 tangtang 阅读(254) 评论(0) 推荐(0) 编辑

2009年3月6日

摘要: 前提:把DataGridView的属性SelectionMode(--指示如何选择 DataGridView 的单元格)设置为:FullRowSelect 1,选中DataGridView中指定的数据行: (1),选中DataGridView的索引值为i的数据行。 this.dgvTVWallLink.Rows[i].Selected = true; (2),选中DataGridView的行索... 阅读全文
posted @ 2009-03-06 10:49 tangtang 阅读(259) 评论(0) 推荐(0) 编辑