Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Editbox question
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00727080
Message ID:
00727088
Views:
13
Hi,

here's some code that's executed in a Commandbutton::Click. The SetFocus stuff is needed since otherwise the cursor is not set correctly.
thisform.edit1.Value = "Line 1" +CHR(13) + "Line 2" +CHR(13) + "Line 3"
thisform.edit1.SetFocus()
thisform.edit1.SelStart = LEN(thisform.edit1.Value)
this.SetFocus()
Regards,
Armin

>I have something like this...
>myEditBox.Value = 'blah blah 1' + Chr(13)
>myEditBox.Value = 'blah blah 2' + Chr(13)
>myEditBox.Value = 'blah blah 3' + Chr(13)
>
>Is there a way to programaticly get the editbox to scroll to the bottom each time? If the editbox is only 2 lines deep, I'd want to see lines 2 & 3, not 1 & 2.

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Previous
Reply
Map
View

Click here to load this message in the networking platform