Text box not showing scroll bars and multiple lines

Asked By 7060 points N/A Posted on -
qa-featured

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.

SHARE
Best Answer by Allen Kenneth
Answered By 0 points N/A #83152

Text box not showing scroll bars and multiple lines

qa-featured

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.
 
Best Answer
Best Answer
Answered By 20 points N/A #83153

Text box not showing scroll bars and multiple lines

qa-featured

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. 
     
For more info on TextBox controls of VB 6.0: https://www.microsoft.com/en-us/download/details.aspx?id=55984
 
Hope you got the help you wanted. Regards!

 

Related Questions