preventing the label from getting focus?

G

giddy

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
 
M

Morten Wennevik [C# MVP]

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 tabbed to by setting Label.TabStop = false, which is the default value, but I suspect you somehow has enabled it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top