In a windows application I open a form on top of the application, to allow for some input. Normaly I want the focus to be on the first control, so I put the tabindex on that control to 0 and number up from there.
In one particular situation I want to focus on another control in the form. I tried simply calling the Focus method for that control, but it doesn't work.
I tried calling focus in the form_load event and in the visibilitychanged event of the control (in case it wasn't visible when focus was requested).
Can anyone tell me how to get focus to a control?
And then silence smacks right in there...
... And it is loud!
In one particular situation I want to focus on another control in the form. I tried simply calling the Focus method for that control, but it doesn't work.
I tried calling focus in the form_load event and in the visibilitychanged event of the control (in case it wasn't visible when focus was requested).
Can anyone tell me how to get focus to a control?
And then silence smacks right in there...
... And it is loud!