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!
 
Back
Top