
Tab key to tab between controls does not work properly
I had the same problem! I have still not got a handle on
how to fix this. Did you figure out a way?
Let me know!
Thanks!
Atul
Quote:
>-----Original Message-----
>Hi,
>In the program I am developing it was necessary to create
a control that has
>a textbox inside it. When I put, for example, three
instances of my control
Quote:
>on a form, set the tab order (or tabindex property) for
each of them and run
Quote:
>the application, the controls dont work as expected when
I press the tab
>key to move between them: if, with a mouse click (over
the text box inside
>the control...) I select the first control and then press
the tab key, it
>goes to the second control, as expected, but then, if I
reselect the first
>control with a mouse click over the text box inside it
and press the tab
>key, the focus goes to the third control, as if the
second control still had
Quote:
>the focus... if I, again, reselect the first control with
a mouse click and
>press the tab key, the focus will continue in it (as if
the third control
>still had the focus and the first was being focused...)
>I noticed this only happens if I put the text box inside
the control I
>create (opposed to inheriting from the TextBox class), as
if I needed to do
>something else to tell the parent control that a child
control of it got the
Quote:
>focus so that the parent control updates its info about
which control is the
Quote:
>active one (has the focus).
>I dont know if I was clear enough explaining the
situation. If not, please
Quote:
>just say it and I will try to clarify.
>Thanks for your attention,
>Daniel Cardoso
>.