Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bizarre shortcut key behavior on Windows Forms

Status
Not open for further replies.

jrl237

IS-IT--Management
Jan 29, 2002
61
US
I have a data entry form I've created in VB.net. I've added labels with shortcut keys above each data field to allow the user to easily skip around the form. The problem is, one of the labels doesn't work. Pressing alt- and the underlined letter doesn't take you to the next textfield. It instead jumps you back to the first field (tab order 0) on the form.

Tab will take you to the field.

I've tried switching the letter, deleting the label and recreating, changing the tab order, but nothing seems to work. All of the other hotkeys on the other fields work fine. If I switch letters with another label, the problem stays with this label.

I can tab or mouse-click the field and it receives focus fine, so I don't think it is the problem.

I'm stumped. Has anyone ever run into this problem before, and more importantly, does anyone have any ideas how to fix it?

Thanks,


jrl
 
Okay, I figured it out. It was obvious once I thought it through. I had another label on screen that was only displaying information, but it had the same tab order. Changed that, and all is well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top