Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 201509 - Last Review: May 3, 2001 - Revision: 1.0
BUG: Textbox Can Be Sized To Less Than Minimum Height
This article was previously published under Q201509
If you resize a
TextBox control with the mouse at design time, you can make the height so small that some of the text is cut off.
To work around this problem, try to set the
Height property of the
TextBox control to a tiny value (for example, one Twip) in the
Properties window. This assigns the
TextBox control to its correct minimum height value, which allows one line of text to be visible.
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
The minimum height of the
TextBox control should always allow at least one line of text to be visible. At design time, a
TextBox control can be resized such that the height of one line of text within the control is not completely visible.
Steps to Reproduce Behavior
- Create a new Standard EXE project in Visual Basic. Form1 is created by default.
- In the Toolbox, double-click TextBox to add a TextBox control to Form1.
- With the mouse, select one of the sizing handles along the bottom of the TextBox control, and resize the control to its minimum height.
- With the mouse, select one of the sizing handles along the bottom of the TextBox control. Notice that the control can be resized to a height that is smaller than the minimum height that you specified in the previous step.
NOTE: If an application requires functionality that allows the height of an edit control to be sized smaller than the height of one line of text, you can use the
Microsoft Rich Textbox Control.
APPLIES TO
- Microsoft Visual Basic 5.0 Enterprise Edition
- Microsoft Visual Basic 6.0 Enterprise Edition
- Microsoft Visual Basic 5.0 Professional Edition
- Microsoft Visual Basic 6.0 Professional Edition
| kbbug kbforms kbbutton kbctrl kbpending kbideproject KB201509 |
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate