Asked By
anonymous
7060 points
N/A
Posted on - 04/07/2012
I have a text box for description in VB 6.0 but it doesn't show scrollbars and that the line written doesn't appear in multiple lines.
Text box not showing scroll bars and multiple lines
The text Area feature is not available in VB 6.0, however you can make the text box work like text area. Change some attributes.
Change the following properties of the text boxes.
Multiline=True
Scrollbars=3
in the Form_load Event.
Thus you get the scroll bars and a multi line text box.Â
You can also hide the data that is being typed in the text box by applying properties in password Char, put *. You can also word wrap to make the look and feel better.
To auto increase the control size you can set the AutoSize property to true.
Â
Thanks
Â
Please give me feedback If you are in more trouble.
Â
Text box not showing scroll bars and multiple lines
Hello,
VB 6.0 TextBox controls offer a simple way for users to enter a value in their programs. There are few settings that should be done to the properties of a TextBox in order to get the expected result. Consider the following:
-
The necessary string should be assigned or set to the text property of the control (Text box).Â
Â
-
If in case the user requires to display multiple texts (lines) in a TextBox, MultiLine property should be set to "True"
-
And in such cases, where the combination of horizontal and vertical Scroll bars come into application, user must have to set the ScrollBars propertyÂ
Â
-
User should note that the Scroll bars will appear on the TextBox, only when the MultiLine property of it is set to "True" and when ScrollBars property is set to "anything except None(0)"
Â
-
The user can set the alignment using the Alignment property, if the MultilIne property is set to "True". Â If it is set to False, then setting the Alignment property has no effect.Â
Â
Hope you got the help you wanted. Regards!
Â