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

Highlight 1

Status
Not open for further replies.

jscorpion

Programmer
Nov 17, 2000
40
US
I am a new programmer and have written a few programs but I would like to know how to highlight a text field when tabing thru the program at runtime. As of now when you go from field to field you must delete previous information then type the new info. I would like the old info highlighted so when you start typing it replaces the old info. I can not seem to find it in the properties of the text box. Is it in there and not obvious or is it a line of code that must be put into the program. I would be much appriciative of any responses.

Thank you,

jscorpion
 
thanks for your response and that does work, but do you have to create a gotfocus subroutine for every text field or is there another setting that can be done. If I have to I will do this but I have 15 text fields and if I would be doing more creating a gotfocus subroutine for each one would be time consuming. I do appreciate your response and thank you again.

jscorpion
 
A quick and simple way, but less appealing overall would be to use a control array of all the textboxes and then issue the above statement into that event procedure taking into account the controls array index.

Not very nice solution though.

James :) James Culshaw
jculshaw@active-data-solutions.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top