
C#
文章平均质量分 58
wenming17
一条什么都不想干的代码狗~
展开
-
C# datagridview 数据集 适配器
try { SqlConnection conn = new SqlConnection("server=" + DBInfo.getIPAddress() + "," + DBInfo.getPort() + ";database=" +DBInfo.getDBName() +";user id=" + DBInfo.getSqlName(原创 2015-06-19 12:23:39 · 494 阅读 · 0 评论 -
DataGridView 单元格中内容为链接,字体为蓝色
this.PictureDataGridView.Columns[0].HeaderText = "编号";//第一列title this.PictureDataGridView.Columns[1].HeaderText = "元件名称";//第二列title this.PictureDataGridView.Columns[2].原创 2015-06-19 20:14:11 · 981 阅读 · 1 评论 -
C# Controls 添加组件、遍历组件、判断组件名以及为相应组件添加对应函数
this.groupBox1.Controls.Add(pb1); this.groupBox1.Controls.Add(pb2); this.groupBox1.Controls.Add(pb3); this.groupBox1.Controls.Add(pb4);原创 2015-06-27 07:07:58 · 1166 阅读 · 0 评论 -
C# Image 图片的缩放
将图片缩小或放大至目标宽高public Image pictureProcess(Image sourceImage,int targetWidth,int targetHeight) { int width;//图片最终的宽 int height;//图片最终的高 try {原创 2015-06-27 07:10:34 · 16044 阅读 · 1 评论 -
C# 查询 插入 修改 删除 sqlserver2008中记录
查询string sql = "select 列名1 from 表名 where id=@id";byte[][] image = new byte[41][]; try { conn.Open(); SqlCommand com = new SqlCommand(sql, this.原创 2015-06-27 07:20:46 · 1083 阅读 · 0 评论 -
C# 窗体透明
this.BackColor = Color.White; this.TransparencyKey = Color.White;//令窗体透明原创 2015-07-03 17:10:09 · 640 阅读 · 1 评论