-
scroll bar
Hi:
I created a text box with vertical scroll bar that displays curent data coming from a port. Once the information exceed the text box I no longer can see the last line unless I scroll down.
I would like to always see the last data w/o scrolling down.
I used the following command to diplay my data in the text box:
Text3.Text = Text3.Text & point & vbCrLf
Is there anyway I can do this w/o deleteing the previous data?
Thanks.
-
Re: scroll bar
I'ed be interested in knowing the same. I hate that flicker you get when you use this method.
BrewGuru99
-
Re: scroll bar
I haven't tested it yet, but I would expect that
Text1.SelStart = len(Text1.Text)
would do what you want.
This would place the cursor/insertion-point at the last character in the TextBox. I would still expect it to flicker, though- since the data is constantly being updated.
- Shawn
-
Re: scroll bar
Text3.SelStart = len(Text3.Text)
Text3.SelText = point & vbCrLf
-
Re: scroll bar
There are a couple of APIs that get/set the TopRow of the Multi-line text. Just look into MSDN. or look into articles section of this site.
http://www.codeguru.com/vb
RK