Heiko Posted April 1, 2004 Posted April 1, 2004 Hi there, we are having a hard time with <TAB>bing in our application. We are developing with VB.NET 2002, Framework 1.0. We did set the tab-sequence with corresponding feature the IDE. First - when the user clicks into a textbox, say it's the fifth control on the current form - and then presses <TAB>, tabbing will start at the "beginning" of the form. I would rather expect it to continue at the current cursor position. Weird. Second - in many cases we place user defined complex controls on the form at runtime. Apparently, they are not correctly recognized because the cursor jumps in a really awkward way. Weird. Our users, however, demand an application that is 100% "keyboard usable". Now we're in trouble. Has anyone else experienced something the like ? Any embarrassing basic stuff that we simpy overlooked ? Any help / hint is appreciated. Thanks. Heiko Quote .nerd
Illusion Posted April 1, 2004 Posted April 1, 2004 Hi, Just use the TabIndex located in properties for that control. Start from 0 and increment for the next textbox you want to use, make sure no other controls have the same number as one of your textboxes otherwise it will get confused and tab all over the place. Quote
Heiko Posted April 1, 2004 Author Posted April 1, 2004 Thanks, but that doesn't help too much. Imagine we have a control names "ctlInvolvedPersons". This control is being used on various other controls, e.g. "ctlChirurgy", "ctlTransport", "ctlContact". ctlInvolvedPersons may be at the very top of ctlTransport, somewhere in the middle at ctlChirurgy and at the bottom of ctlContact. Quote .nerd
Illusion Posted April 2, 2004 Posted April 2, 2004 I'm not sure I follow... controls on controls... so something like a textbox on a panel.. (how I would guess?) If you cannot use TabIndex, can you not use Tags and fill them with data. Then for your form, loop through all of the controls.tag and find the next tag +1 ? If you are loop through all controls which are ctlInvolvedPersons .. then just loop through the form looking for that control only. dim blah as ctlInvolvedPersons for each blah in Form msgbox("found") next Any help? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.