Sir,
I need your help to a navigation problem.
This is my first step:-
When I click on the ' + ' button, a new form will popup. Here that form:-
I want to return and focus to the comboBox control containing ' +' control immediately after saving the company.
How this possible in c#?, please help me.


Bineesh ViswanathRank #1,681 · 907 reputationPosted Mar 25, 2014, 3:25 AM EDT
Try this.
Put this code in the form where you navigate into the frmCompany
frmCompany frm=new frmCompany();
frm.ShowDialog();
// also call the function to load the company in the comboBox.
Then in the form frmCompany-
// in the Button Save_Click
//after save function code,
form1 frm=new form1();
frm.show();
Please mark as correct if it correct.
VulpesRank #55 · 29.2K reputationPosted Mar 25, 2014, 3:09 AM EDT
// on main form
else
{
}
// on frmCompany
If the combobox is data-bound, then to add an item you'll need to change the underlying data source and rebind.
Nathan R10 reputationPosted Mar 25, 2014, 3:29 AM EDT
the code by you is correct.