|
-
October 18th, 1999, 11:27 AM
#1
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.
-
October 18th, 1999, 03:45 PM
#2
Re: scroll bar
I'ed be interested in knowing the same. I hate that flicker you get when you use this method.
BrewGuru99
-
October 18th, 1999, 06:52 PM
#3
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
-
October 18th, 1999, 08:04 PM
#4
Re: scroll bar
Text3.SelStart = len(Text3.Text)
Text3.SelText = point & vbCrLf
-
October 19th, 1999, 06:53 AM
#5
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|