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.