Rotate Focus

  • Thread starter Thread starter RaginTiger
  • Start date Start date
R

RaginTiger

How do I rotate focus among controls inside a groupbox/panel?

I have 10 controls in my form. Once the focus reaches control5 (using
my TAB key), I would like the focus to go to control1.

Thanks in advance
 
Normally the focus move from control to control based on their tab order
(see TabIndex and TabStop) proeprties. By setting them correctly you can get
the desired effect without writing a code.
 
Me.Control5.Parent.SelectNextControl(Me.Control5, True, True, True,
True) in the Leave event sub worked like a charm.

Thanks Mr Wagner!
 

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

Back
Top