Hello there,
I have trouble with the Control.Focus method.
When I try to set the input focus on a textBox by using
I get a "false" back and no focus is being set.
The help explains:
"A control can be selected and receive input focus if all of the following are true: its ControlStyles.Selectable style bit is set to true, it is contained in another control, and all its parent controls are both visible and enabled."
So how can I ensure all the above mentioned conditions in a smart way?
Does anybody know?
Thanks,
Andy
I have trouble with the Control.Focus method.
When I try to set the input focus on a textBox by using
Visual Basic:
myTextbox.Focus()
The help explains:
"A control can be selected and receive input focus if all of the following are true: its ControlStyles.Selectable style bit is set to true, it is contained in another control, and all its parent controls are both visible and enabled."
So how can I ensure all the above mentioned conditions in a smart way?
Does anybody know?
Thanks,
Andy