private void button1_Click(object sender, EventArgs e) { OleDbCommand com = new OleDbCommand();
com.Connection = conn; com.CommandText = "Insert into Komin ( Komin) values ( ?)"; com.Parameters.AddWithValue("@Komin", textBox1.Text); try { conn.Open(); OleDbDataAdapter oleDbAdapter1 = new OleDbDataAdapter(new OleDbCommand("Select * from Komin order by ID asc", conn));
com.ExecuteNonQuery();
dataset1.Clear(); oleDbAdapter1.Fill(dataset1, "Komin");
} finally { textBox1.Text = ""; conn.Close(); } button2.Focus(); }
private void button11_Click(object sender, EventArgs e) { Komintent komintent = new Komintent(this);
komintent.Show(); }