manual set focus on control in form.load

S

swegele

Help...seems so simple dang but I can't figure it out!!

Regardless of tab order...I want a consistent way to:

1. set focus on a combo box on form load
2. on gotfocus of combo box to droppeddown = true

Whatever I do, tab order overrides seemingly after form load...which
closes the combobox.

If I try and do this on Form.Activate then it would fire over and over
if they switched between windows. I only want it to fire once when the
form first loads.

Has anyone else figured out a way to handle this...I come accross this
all the time and setting tab order doesn't always work given complex
forms.
 
H

Herfried K. Wagner [MVP]

swegele said:
Regardless of tab order...I want a consistent way to:

1. set focus on a combo box on form load

Call the control's 'Select' method.
 

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

Top