自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

407509797专栏

初学者

  • 博客(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关注的人

提示
确定要删除当前文章?
取消 删除