>I need to always set the focus to a textbox on the form. So after every event, command button, action, etc. I invoke a method (GoTo_Focus) which just executes the following:
>
>THISFORM.txtcWorkOrderID.SetFocus()
>
>My problem is that on the form I also have a non-readonly grid list which the user can click on and perfrom other functions to records; after which I must automatically set the focus to the textbox on the form (above).
>
>Where is the best place the call to the GoTo_Focus() method ?
You may try grid's Valid event. Also check FAQ here how to add GotFocus/LostFocus events to the grid.
If it's not broken, fix it until it is.
My Blog