Actually, the user control I mentioned is in another user control. I didn't
mention that initially because I wanted to keep the question simple. So it
sounds like MS has some bugs to fix in this area.
Have you tried any of Jens suggested code. Does it help the control within a
control problem.
Thanks.
Mitch
> I have a similar problem when there is a user control within a user
control
> on a form. I (and others) have reported this several times with no
reponse
> from MS. The solution for me was to only have the UC on an inherited
form,
> i.e. reduce the number of levels.
> It seems like this is a bit different from your problem as you only have
one
> level but it is becoming apparent that there are problems with tabs and
UC.
> As SP2 is slated for Sep this year, you may have to re-architect your app.
> Laurie Paulin
> Perth, Western Australia
> > I have a form with a textbox, two user controls and an OK button. Each
> user
> > control has a button and a dataGrid. When the focus moves to the user
> > control, the tabbing behavior inside the user control is unpredictable.
> > sometimes the focus goes to the button, then the datagrid, and sometimes
> the
> > focus goes to the button, then out of the control. I am explicitly
setting
> > the tabindex values for each control, An I've also set the Z-orders but
to
> > know avail.
> > Can someone explain how to control how the focus moves when the tab key
is
> > pressed.
> > Thanks
> > Mitch