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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tab functionality by code

Status
Not open for further replies.
Nov 6, 2002
89
CH
Hello

does anyone know how I can at the "tab functionality" (like on the keyboard" to the end of a function?

Another question: How can I achieve that the data in a form field is marked when the field is clicked on? The default value of the fields is "0" and I would like that the zero is marked when the field gets the focus.

Thank you.

Stefan
 
Hi

Yes you can set the selected text example

Private Sub Form_Load()
Text0.Value = "ABCDEFGHIJKLMNOPQ"
Text0.SetFocus
Text0.SelStart = 3
Text0.SelLength = 5

End Sub

causes DEFGH to be selected
Regards


Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top