Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Edit box
Message
 
 
To
06/09/2003 10:47:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00826740
Message ID:
00826741
Views:
20
Gaylen,

Make sure you add a chr(13) to the string you are puttin in for the date/user id. Then set the edt.SelStart = len( edt.Text ). I believe you have to do this in the GotFocus() along with issuing a nodefault to prevent the baseclass behavior:

nodefault
this.SelStart = len( this.Text )

>If it is possible, how can I get an editbox to look like a yellow legal pad with lines? Also I want to stuff a date and user id as the first line of the edit box and then have the cursor located in the second line so they can add the text. I have no problem stuffing the date and user id but am having problems locating the cursor on the line underneath the date and Id.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform