Delphide çok rahat yaptığımız şu textChanged olayı .Net te çok nazlı. Önce kodlarımı yazıyorum;
Kod: Tümünü seç
private void textBox10_TextChanged(object sender, EventArgs e)
{
/* Departman bilgilerini alıyor */
if (textBox10.Text != "")
{
da1 = new SqlDataAdapter("select DepartmanAdi from tbl_Departman where DepartmanID='" + textBox10.Text + "'", cn);
da1.Fill(ds1, "tbl_Departman");
comboBox1.SelectedItem = ds1.Tables[0].Rows[0]["DepartmanAdi"].ToString();
}
}