
Please help with TextBox / Label properties
Lee,
That would work except the text is still light gray.
Any way around that?
I am now using a rich text box, which does everything except
automatically format the line-lengths to fit in the box.
John
Instead of Chr(10) and Chr(13), use the correct combination Chr(13) +
Chr(10),
or the constant vbCrLf. It will work perfectly.
Lee Weiner
weiner AT fuse DOT net
http://home.fuse.net/lweiner
Quote:
>I have a program which has a help component I want to display which
>would be multiple lines/paragraphs/pages of read-only text displayed
>within a fixed window.
>My problem is that the textbox cannot do multiple paragraphs. I tried
>chr(10) and chr(13) but only get the unkown-character box displayed.
>Also, the textbox only displays in light gray (too light) when enabled
>is set to false (since it is read-only).
>A label, on the other hand, presents a different problem - no
>scrollbars so the amount of information is very limited.
>So with a textbox, I would have to pad my paragraphs with spaces to
>force line-feeds an live with the light gray text - or with a label, I
>would have to break down the information into 40-50 seperate pieces
>and force the user to click a button to go back and forth rather than
>scrolling and live with the fact that they won't be able to cut and
>paste sections freely.
>I figure there MUST be some better way, but I cannot find it in any of
>the help or reference material I have available.
>???????????