hi ,

I have a groupbox with labels and textboxes , just like a regular
form.

I've set the tabindex for each consecutive textbox to tabindex of the
prior textbox +1. The labels have high indexes , but they still
recieve focus after every textbox Is there any way to prevent this?

Thanks
Gideon

Re: preventing the label from getting focus? by Morten

Morten
Sat Jun 02 12:32:45 CDT 2007

On Sat, 02 Jun 2007 16:43:45 +0200, giddy <gidisrael@gmail.com> wrote:

> hi ,
>
> I have a groupbox with labels and textboxes , just like a regular
> form.
>
> I've set the tabindex for each consecutive textbox to tabindex of the
> prior textbox +1. The labels have high indexes , but they still
> recieve focus after every textbox Is there any way to prevent this?
>
> Thanks
> Gideon
>
>

Hi Gideon,

Labels do not normally accept focus, but you can ensure they can't be ta=
bbed to by setting Label.TabStop =3D false, which is the default value, =
but I suspect you somehow has enabled it.

-- =

Happy coding!
Morten Wennevik [C# MVP]