hi friend...
for this EmployeeID should be not duplicate(primary key in database)
and then the event of text chenge for textbox1 control you have to right the code...
private void textBoxId_TextChanged(object sender, EventArgs e)
{
string empname="select EmployeeName from Employee_Details where EmployeeID='"+textbox.text+"' ";
con.open()
MySqlCommand cmd = new MySqlCommand(empname, con);
MySqlDataReader dr = cmd.ExecuteReader();
if(dr.read)
{
textbox2.text=dr["EmployeeName"].tostring;
}
con.close();
}
also use Namespace and connection String for SQL Server(if you using this database)
it is achiving that actually you want...
thanks