Advertisement

VB 5.0 Focus problems...

Started by July 10, 2000 11:56 PM
2 comments, last by Zz 24 years, 5 months ago
ok user clicks a button and text1.text appears how do I get the focus to automatically move to text box (Cursor blinking waiting for input...)? there is no focus property. Thanks -- Zz
Try Text.SetFocus
I may be wrong, its been a while since I''ve used VB
Advertisement
He''s right. Text1.SetFocus will do it.

I forget if VB 5.0 or VB 6.0 introduced it, but there is also a Validation event you can work on. It helps you validate a field''s value BEFORE it _loses_ focus.. So you can "keep" the cursor in a text field until it recieves a valid input value.

// CHRIS
// CHRIS [win32mfc]
The Validation event was added for the 6.0 release of VB.

This topic is closed to new replies.

Advertisement