private void fillData() { //Code for searching the record against 'CustomerName' if (dSet.Tables[0].Rows[0]["DistrictName"] != DBNull.Value) //Dropdown Control SendKeys.Send(dSet.Tables[0].Rows[0]["DistrictName"].ToString().Trim()); WaitFor(); SendKeys.Send("{TAB}"); SendKeys.Send(dSet.Tables[0].Rows[0]["City"].ToString().Trim()); WaitFor(); SendKeys.Send("{TAB}"); SendKeys.Send(dSet.Tables[0].Rows[0]["SpouseName"].ToString().Trim()); //Textbox Control WaitFor(); // and So Many Fields.. WaitFor(); GC.Collect(); } private void WaitFor() { for (int i = 0; i <= 5000; i++) { Application.DoEvents(); Application.DoEvents(); Application.DoEvents(); Application.DoEvents(); Application.DoEvents(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)