欢迎加我的QQ群:193522571,一起来讨论、交流!
摘要: 1.this.Close(); 只是关闭当前窗口,若不是主窗体的话,是无法退出程序的,另外若有托管线程(非主线程),也无法干净地退出;2.Application.Exit(); 强制所有消息中止,退出所有的窗体,但是若有托管线程(非主线程),也无法干净地退出;3.Application.ExitTh... 阅读全文
posted @ 2014-07-09 20:46 swtool 阅读(1279) 评论(0) 推荐(0)
摘要: private void button1_Click(object sender, EventArgs e) { if (test(10)) MessageBox.Show("代码成功执行!"); else MessageBox.Show("代码未执行!"); } private bool test... 阅读全文
posted @ 2014-07-09 20:45 swtool 阅读(187) 评论(0) 推荐(0)
摘要: 扩展文字应有一套完备的命名体制eHeaddnidthkhdHeaddnidthkhdrxrcHeaddnidthkhdrxrh1id1dh 阅读全文
posted @ 2014-07-09 20:44 swtool 阅读(171) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/OpenCoder/archive/2010/02/23/1672043.html 阅读全文
posted @ 2014-07-09 20:42 swtool 阅读(161) 评论(0) 推荐(0)
摘要: 1、查询Student表中的所有记录的Sname、Ssex和Class列。selectsname,ssex,classfromstudentLinq:fromsinStudentsselectnew{s.SNAME,s.SSEX,s.CLASS}Lambda:Students.Select(s=>n... 阅读全文
posted @ 2014-07-09 20:39 swtool 阅读(200) 评论(0) 推荐(0)
摘要: 工具->选项->项目和解决方案->生成并运行->当项目过期时->从不生成这是因为运行时生成的DLL与目前VS现有的代码版本不一样造成的,把Bin下的Dll删除,再重新生成。工具->选项->调试->常规->去掉“要求源文件与原始版本完全匹配”复选框就OK。全选CPP文件内容,选择 “编辑”-“高级”-... 阅读全文
posted @ 2014-07-09 20:32 swtool 阅读(4082) 评论(0) 推荐(0)
摘要: 首先需要将DataGridView的RowHeadersWidthSizeMode设置为EnableResizing,才可以设置RowHeadersWidth值! 阅读全文
posted @ 2014-07-09 19:55 swtool 阅读(3543) 评论(0) 推荐(0)
摘要: //根据输入内容绑定工作令号下拉框值,匹配与输入内容相似的值 var Tcn = (from ee in LinkToSQL.TasCom from ff in ... 阅读全文
posted @ 2014-07-09 19:48 swtool 阅读(1376) 评论(1) 推荐(0)
摘要: typ.GetType().GetProperty("BPlate").GetValue(typ, null).ToString();spa1.GetType().GetProperty(KeyString).SetValue(spa1, val, null);返回结果是:SA-240 304 阅读全文
posted @ 2014-07-09 11:41 swtool 阅读(1912) 评论(0) 推荐(1)
欢迎加我的QQ群:193522571,一起来讨论、交流!