- 博客(5)
- 收藏
- 关注
原创 dataGridView1_CellContentDoubleClick事件处理
1. private void dataGridView1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) 2. { 3. //获取行首的单元格双击事件,并以此值作为传参对象 4. string CellValue = this
2012-02-28 21:21:23 7059
原创 登录方法及防止sql注入
登录查询语句最好不要用连接字符串查询,防止sql注入。1‘or’1‘=’1string username="admin";string password="123";string str="连接字符串";using(sqlconnection cnn=newsqlconnection(str)){ using(sqlcommand cmd=cnn.createcommand())
2012-02-20 20:55:14 4714
原创 sql语句
1、说明:创建数据库CREATE DATABASE database-name 2、说明:删除数据库drop database dbname3、说明:备份sql server--- 创建 备份数据的 deviceUSE masterEXEC sp_addumpdevice 'disk', 'testBack', 'c:\mssql7backup\MyNwind_1.
2012-02-24 06:35:48 376
原创 C# WinForm dataGridView 技巧小结
.不显示第一个空白列RowHeaderVisible属性设置为false 2.点击cell选取整行SelectinModel 属性FullRowSelectRowSelectinModel属性设置或用CellClick事件也可以 //整行选取private void dataGridView1_CellClick(object sender, DataGridViewC
2012-02-22 19:43:33 2080
原创 登录错误,帐号冻结及解冻
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Sy
2012-02-22 08:05:24 1637 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人