help on displaying paragraph
ok so i have this program. i made a tool bar at the top of the form. and when you click on one of the tabs i want the form to display a paragraph or two in a label. so my first question is how do i get it to display a paragraph and then if the paragraph bigger will the label have a scroll bar or do i have to put something in so that it scrolls.
[346 byte] By [
tralfas] at [2007-11-11 7:21:50]

# 1 Re: help on displaying paragraph
There's no way to get a label to display a scrollbar. The easiest solution is to use a textbox instead of a label. Set the textbox's BackColor property to Button Face, its MultiLine property to True, and its ScrollBars property to Vertical. Then assign your paragraph to the Text property. To prevent the user from editing the text, you may reassign the paragraph to the Text property in the textbox's Change event, or send an EM_SETREADONLY message to the textbox:
' Add to form's Declarations section
Private Const EM_SETREADONLY = &HCF
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
' Add to Form_Load
SendMessage txtBox.hWnd, EM_SETREADONLY, True, ByVal 0