Debasis Bag
May 13th, 2010, 04:37 AM
Hi everybody,
I have a project which contains two forms.
One form contains a combobox and a datagridview control
2nd form contains a textbox and a command button and several Radio Buttons.
When I run the programme the 1st Form is loaded and it is displaying with a combobox and datagridview
If I select somethings from combobox the system showing 2nd form with three type ofcontols(textbox,command
button,radio buttons etc) on top of form No one.
Now I am selecting some radio buttos and clicking command button for execution some job then the 2nd form is closed and
1st form's datagrid view displaying some records and set focus goes to combobox not in gridview. as result
I can't do anything on gridview.
although I have written setfocus on gridview but still the focus goes to combo box
why setfocus is going to combo box instead of gridview.
Please suggest me how to setfocus on to gridview after clicking command button of 2nd form.
//Code
commandbutton_click
1stForm.Datagridview.focused()
//Code
Thanking you
Debasis
I have a project which contains two forms.
One form contains a combobox and a datagridview control
2nd form contains a textbox and a command button and several Radio Buttons.
When I run the programme the 1st Form is loaded and it is displaying with a combobox and datagridview
If I select somethings from combobox the system showing 2nd form with three type ofcontols(textbox,command
button,radio buttons etc) on top of form No one.
Now I am selecting some radio buttos and clicking command button for execution some job then the 2nd form is closed and
1st form's datagrid view displaying some records and set focus goes to combobox not in gridview. as result
I can't do anything on gridview.
although I have written setfocus on gridview but still the focus goes to combo box
why setfocus is going to combo box instead of gridview.
Please suggest me how to setfocus on to gridview after clicking command button of 2nd form.
//Code
commandbutton_click
1stForm.Datagridview.focused()
//Code
Thanking you
Debasis