try { if (!(textBox1.Text == string.Empty)) { //if (!(pictureBox1.Image == string.Empty)) if (!(pictureBox1.Image == null)) { // this.pictureBox1.Image.Dispose(); // this.pictureBox1.Image = null; } System.Drawing.Imaging.ImageFormat.Jpeg); { SqlConnection con = new SqlConnection(); con.ConnectionString = "Data Source=DESKTOP-8BEJFRN\\SQLEXPRESS;Initial Catalog=win;Integrated Security=True"; con.Open(); SqlCommand cmd = new SqlCommand("SELECT username,pic FROM pe WHERE username='" + textBox1.Text + "' and pic='" + pictureBox1.Image + "'", con); SqlDataReader dr = cmd.ExecuteReader();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)