Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 626
  • Last Modified:

Ctrl + Tab key on VB 6.0

Hi,

How to enable the ctrl+tab key on vb form ? By setting the TabIndex and Tabstop properties, I can move around the object in VB with the tab key. However, pressing ctrl+tab key proves to have no effect on changing the tab position. How can I achieve this ?

Thanks
0
hama-ayu-ism
Asked:
hama-ayu-ism
  • 3
  • 2
  • 2
  • +2
1 Solution
 
pg_indiaCommented:
could you please tell me what kind of effect you want on ctrl + tab key??
0
 
Ryan ChongCommented:
To go to the next controls in layout in sequence order, first, try to set the TabIndex of the control acsending, start with 0 as the Form default focus controls. Set the TabStop Property to False if you want the control to bypass the "Tab" keypress. And when your form is running, just using keypress "Tab" to move the focus to next control (based on TabIndex and TabStop Property), but not Ctrl+Tab.
0
 
mmusanteCommented:
ctrl + tab is usually used to change window in MDI applications
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
hama-ayu-ismAuthor Commented:
Hi all,

pg_india and ryancys : What I want to achive is to enable the user to fill all the textbox without having to use the mouse. I have set the tab index in order, and pressing the tab key would made the focus jump from one textbox to the other according to the tab order I have set. Let's say I have 3 text box, namely text1, text2 and text3.
On form load, text1 would have the focus. If I press the tab key, it would jump to text2. How do I get back to text1 withou having to press the tab key twice, but only have to press ctrl+tab and the focus would change from text2 back to text1 ? This is what I want to achieve.
Please let me know if I am not clear. English is not my first language, so please pardon me for any misunderstanding

mmusante : I think that should be Alt + tab to change windows ??

Thanks all
0
 
mmusanteCommented:
Alt + tab for standard windows (SDI applications)
ctrl + tab for windows internal to a MDI application
0
 
mmusanteCommented:
>>>  How do I get back to text1

Try using shift - tab
0
 
gimmeadrinkCommented:
yep mmusant is right about all of them

shift is used for backwards in all parts of windows.

e.g.

shift + tab: goes to previous tab stop
shift + alt + tab: goes to previous application
shift + ctrl + tab: goes to previous mdi window
0
 
Ryan ChongCommented:
and use Ctrl+F6 to change focus on internal windows
0
 
hama-ayu-ismAuthor Commented:
Ok,

Thanks all for the answers. Never thought off using shift + tab.

Thanks. Points goes to mmusante.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 3
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now