|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Hi all,
I am new to VB. Please give me couple pointers. Is there object for displaying text file with scroll bar? Related questions would be how do I display multiple lines in the TextBox? Not wrap lines... actually two seperated lines. I know I can't do "\n". ![]() Thanks
__________________
Help me, help you, help others...
|
|
#2
|
||||
|
||||
|
The easiest way would be to put the text in a richtextbox control and use it.
To get the scrollbars on it use it's "scrollbars" property. i.e. RichTextBox1.ScrollBars = rtfBoth To get line feeds instead of using "\n" use vbCrLf which is the vb constant for carriage return & line feed. |
|
#3
|
||||
|
||||
|
Thank you Onslaught
|
|
#4
|
|||
|
|||
|
vbCrLf!
text1.text = "foo" & vbCrLf & "bar" there ya go ![]()
__________________
User1: Is September 11th the first time the market ever bombed? Me: ... *slaps user1* great depression, idiot. User1: What was that? Join Darkscape! ![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > how to display text files |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|