摘要: SqlConnection sqlcon =new SqlConnection( "Data Source=.;Initial Catalog=BGS;User ID=sa");//sql连接语句 sqlcon.Open(); //连接数据库 SqlDataAdapter sqladt = new 阅读全文
posted @ 2016-12-16 11:28 clarklxr 阅读(108) 评论(0) 推荐(0)
摘要: datagridview.Rows[].Cells[].value 取单元格值 datagridview.CurrentCell.RowIndex;是当前活动的单元格的行的索引DataGridView1.CurrentRow.Index 获得包含当前单元格的行的索引 datagridview.Sel 阅读全文
posted @ 2016-11-29 13:18 clarklxr 阅读(128) 评论(0) 推荐(0)
摘要: using System; using System.Threading; private void swap(int x,int y) { y=interlocked.exchange(ref x,y); } //ref指定以原子操作的形式 // REF关键字百度百科http://baike.ba 阅读全文
posted @ 2016-10-28 10:17 clarklxr 阅读(506) 评论(0) 推荐(0)
摘要: Rendering Problems Failed to load the Layoutlib:com/android/layoutlib/bridge/Bridge:Unsupported major.minor version 52.0 以上错提示表示版本号不支持,调低版本号即可.如API24调 阅读全文
posted @ 2016-09-30 10:50 clarklxr 阅读(227) 评论(0) 推荐(0)
摘要: datatable添加数据 datatable dt=new datatable(); dt.columns.add("string"); //添加列 dt.Columns["string"].SetOrdinal (0); //设定"string"列的位置 DataTable.Columns.Co 阅读全文
posted @ 2016-09-23 22:05 clarklxr 阅读(142) 评论(0) 推荐(0)
摘要: 删除 HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager下PendingFileRenameOperations子键 阅读全文
posted @ 2016-08-10 16:40 clarklxr 阅读(104) 评论(0) 推荐(0)