摘要:
先打开一个图片文件private void Image(object sender, EventArgs e) { OpenFileDialog fileDialog = new OpenFileDialog(); fileDialog.Filter = "图片文件|*.jpg"; fileDialog.Multiselect = false; if (fileDialog.ShowDialog() == DialogResult.OK) { //图片地址 this.textBoxImage.Text = fileDialog.FileName; } }保存图片privat 阅读全文
摘要:
一个Sql-server数据库连接,只适合初学者哦using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Data.SqlClient;namespace DataAccess{ /// <summary> /// 操作数据库公共类 /// </summary> class SqlDataAccess : IDisposable { /// <summary> /// 数据库连接字符串 // 阅读全文