try { baglanti.Open(); string d1 = dateTimePicker1.Text; string ekle = "insert into kitaplar(kitap_adi,kitap_tarihi,kitap_sayisi) values('" + textBox1.Text + "','" + d1 + "','" + textBox3.Text + "') "; MySqlCommand komut = new MySqlCommand(ekle, baglanti); komut.ExecuteReader(); baglanti.Close(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); }