By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,960 Members | 2,238 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,960 IT Pros & Developers. It's quick & easy.

VB Kiosk

P: n/a
I am trying to make a VB .Net Kiosk which will
automatically scroll through an RTF file. I can load the
RTF file into a RichTextBox but so far I haven't been able
to get the application to continuously scroll through the
file and start over when it get to the end of the file.
Any ideas on how to automatically scroll a RichTextBox? Is
there a better way to do this (in Vb.net or ASP.Net)?

Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Rather than trying to get the RichTextBox itself to scroll, try this:

Poor man's scrolling:

1) Put the RichTextBox in a Panel.
2) Set the height of the RichTextBox so that all of the document text
fits without scrolling. (Yes, even if it makes the RichTextBox huge, bigger
than the panel or form it's in)
3) Use a Timer control, and in Timer_Tick, experiment with moving the
RichTextBox. To move up -> RichTextBox.Top = RichTextBox.Top - 5, or
whatever you want. Test if the RichTextBox is out of view to cycle it back
to the bottom -> If (RichTextBox.Top + RichTextBox.Height < 0) Then ...

Hope that helps.

Erik

"Brian J" <br*************@eds.com> wrote in message
news:33****************************@phx.gbl...
I am trying to make a VB .Net Kiosk which will
automatically scroll through an RTF file. I can load the
RTF file into a RichTextBox but so far I haven't been able
to get the application to continuously scroll through the
file and start over when it get to the end of the file.
Any ideas on how to automatically scroll a RichTextBox? Is
there a better way to do this (in Vb.net or ASP.Net)?

Nov 20 '05 #2

P: n/a
"Erik Frey" <er*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Rather than trying to get the RichTextBox itself to scroll, try this:

Poor man's scrolling:


The need for "poor man's" scrolling has been eliminated with the advent of
the AutoScroll property, check it out.

~
Jeremy

Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.