Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

No focus

Status
Not open for further replies.

daklem

Technical User
Sep 28, 2003
23
0
0
Hi all.

Is there a way to open a form without any of the fields on the form having focus, or will the first field in the tab order always have focus?
 
Other than by setting the Enabled property of every control to False, I don't think so.

Alternatively you could create an Unbound Textbox, set its Left, Top, Width and Height to 0 and its BackColor to that of the Form and SpecialEffect to Flat. Set it to 0 in TabOrder.


hope this helps.
 
EarthandFire's second method is the one I've used numerous times for this purpose!

The Missinglinq

There's ALWAYS more than one way to skin a cat!
 
Thanks earthandfire and missingling for your responses.

The unbound text box worked just fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top