摘要: 自实现的cookie 验证,远程取值的例子以下代码配合HttpClient使用可以实现跨域(cookie的读写)//验证 复制代码 代码如下:HttpClient httpClient = new HttpClient(url, null, true);httpClient.PostingData.Add(key,value);//登录用户名httpClient.PostingData.Add(key,value);//密码string str = httpClient.GetString();----写文件 序列化传回来的cookie 复制代码 代码如下:CookieCollection c 阅读全文
posted @ 2013-09-12 18:03 simadi 阅读(1411) 评论(0) 推荐(0) 编辑
摘要: //禁止用户改变DataGridView1的所有列的列宽//DataGridView1.AllowUserToResizeColumns=false;//禁止用户改变DataGridView1の所有行的行高dataGridView1.AllowUserToResizeRows=false;//禁止用户改变列头的高度dataGridView1.ColumnHeadersHeightSizeMode=DataGridViewColumnHeadersHeightSizeMode.DisableResizing; 阅读全文
posted @ 2013-09-12 15:01 simadi 阅读(4792) 评论(0) 推荐(0) 编辑
摘要: 1.不显示第一个空白列RowHeaderVisible属性设置为false2.点击cell选取整行SelectinModel属性FullRowSelectRowSelectinModel属性设置或用CellClick事件也可以 //整行选取 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) { //e.RowIndex > -1否则点击header也是叫一列 if (dataGridView1.Rows.Count > 0 && e.RowIndex &g 阅读全文
posted @ 2013-09-12 14:24 simadi 阅读(727) 评论(0) 推荐(0) 编辑