C#Winform在数据库中读取图片文件和上传数据文件
读取数据库图片字段方法: protected void LoadPicture() { Image img = null; if (this.gl_studentid.Length==0) { img = Image.FromFile("NoPicture.png");//如 …… 阅读全文
读取数据库图片字段方法: protected void LoadPicture() { Image img = null; if (this.gl_studentid.Length==0) { img = Image.FromFile("NoPicture.png");//如 …… 阅读全文
标准控件1 btn Button2 chk CheckBox3 ckl CheckedListBox4 cmb ComboBox5 dtp DateTimePicker6 lbl Label7 llb LinkLabel8 lst ListBox9 lvw ListView10 mtx MaskedTextBox11 cdr MonthCalendar12 icn No …… 阅读全文
string str1="Test"; string str2 = "Test"; if (str1==str2) //第一种判断方式 { //第二种判断方式 int result1 = str1.CompareTo(str2); …… 阅读全文
//首先生成DataGridView的CellMouseDown事件 private void dataGridView1_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e) { //循环遍历每一行,设置为不选中状态 for (int i = 0 …… 阅读全文
private void CreateImage(string codes) { try { int iMapWidth = codes.Length * 21; Bitmap map = new Bitmap(iMapWidth, 28); //创建图片背景 …… 阅读全文
private void LoadData() { string sql = @"select 编号,姓名,性别,住址 from 学生表"; DataTable dt = DBUtil.GetData(sql); if (dt.Rows.Count==0) { …… 阅读全文