|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello there,
I've been muddling through a few of the threads and can't seem to find exactly what I'm looking for (or possibly it is in here, and I just don't know the code enough to translate it). I'm teaching myself VB, and trying to compose a rather basic program. The object of the program is to click on a label at the bottom of a screen and have a corresponding picture, title (which is also in label format) and some text (some of it as long as 5 paragraphs) appear. The trouble lies in getting the big chunk-o text to appear. (the picture and title work fine). I'm having a bit of trouble getting the text (or memo? I've noted a distinction in the two) to appear. I've tried using a "label" and a "textbox" to no avail. Perhaps there's a format for long chunks of text that I don't know about. I've tried just copying and pasting the text, but it's obviously too long. I've made a few attempts at loading a text file into both a textbox and a label, but haven't come across either the right way to do it, or an alternate way altogether. I can't seem to find anything about a basic text addition in any of my books (it all seems to cater to writing a portion of text, and nothing as long as what I want to add). Perhaps it is really basic and I'm overlooking it, but I thought I'd ask this forum and see what you all can figure. Thanks |
|
#2
|
|||
|
|||
|
Look into the Microsoft Rich Textbox Control.
project->components->microsoft Rich Textbox control. |
|
#3
|
||||
|
||||
|
Check out what the previous user suggested that is most likly what you want, but I think (I haven't used vb in a while) a textbox control can be set to accept larger amounts of text.
__________________
Miscellaneous Software Viper_SB Developershed E-Support Anyone else play chess? Challenge me |
|
#4
|
|||
|
|||
|
Hmm, ok so I've tried that, but can't seem to get it to resize past a certain point. It doesn't seem to want to/be able to produce a little scroll bar. (I'm anticipating the very same look/style as with this reply box).
Am I barking up the wrong tree? |
|
#5
|
||||
|
||||
|
there is a property called (I think) multiline that should be set to true then it'll show scroll bars also I think there is another one that sets which scroll bars you want to see.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > New - basic text question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|