Click to See Complete Forum and Search --> : Multiline Text box control


redhat27
August 4th, 2001, 02:12 PM
Hello...

How do I always see the bottom line of a multiline textbox control? I have this textbox (multiline w/ v-scroll bars) and it is locked/disabled for user input (text gets filled programatically) the problem is that as the text box filles up, and more lines are added, they are added at the bottom, and is not viewable, unless the user actually scrolls down. I tried generating a ctrl+end keypress event (RaiseEvent) with focus on the text box, and this did not work (I guess you cannot generate any keypress event, as people could potentially generate a ctrl+alt+del event too..) Anyway, any ideas?

waqas_hussain
August 4th, 2001, 08:23 PM
Try This one

Private Sub Command1_Click()
With Text1
.SelStart = Len(.Text)
End With
End Sub

deghost
August 5th, 2001, 09:26 AM
Just for a laugh, i've created a self-programming program using generated keypresses! (in IDE only).
you generate the following:
Alt-F4 to exit to IDE
The code you want to add (or even to DELETE! by backspace)
F5 to run
:0)!

----------
The @host is everywhere!
----------