Solved

VB TextBox can't reduce height

Posted on 2004-10-31
502 Views
Last Modified: 2010-05-02
Hello,
I have an odd situation that I cannot reduce the height of a textbox below 315.
I can add a new textbox and the default for that is 285.  Then I made some changes and pasted it into a picturebox for grouping inputs.  I then tried to change width... at some point in editing it changed height and now will not let me reduce that height.  Even in F4 properties I can select height, change it, and when I move out it pops back to 315.  

Anyone seen this before?

-Tim
0
Question by:torrid333
    5 Comments
     
    LVL 7

    Accepted Solution

    by:
    The text box will auto set it's height to the minimum required to fit a font. If at some point you changed the font or font attributes then this would be the cause.

    0
     
    LVL 2

    Expert Comment

    by:koolnurd
    hi torrid333

    The minimum height of the textbox depend upon the font, font style and font size if its too small then text box width can be reduced.  
    0
     
    LVL 14

    Expert Comment

    by:Shiju Sasidharan
    Hi

    try to make the font style from Bold to Regular if u had put so

    ;-)
    Shiju
    0
     
    LVL 7

    Expert Comment

    by:Burbble
    If I remember correctly, changing the font of a Text Box to Arial results in the minimum height being 315 (unless you decrease the font size). You can try another font. MS Sans Serif is the default.

    -Burbble
    0
     

    Author Comment

    by:torrid333
    I could make adjustments by removing the option to lock to grid. I also played with the default font for the form.
    And also played with adjusting font size.  All of these things seem to have an affect but there was no magic bullet to the issue.  Even with changing font sizes, etc some of my text boxes do not resize to the same size of other controls on the same form.  So most times I have to manually set the size properties to get it to match the size of other text boxes.  I appreciate your insight but I think the IDE is not very user friendly in this area.
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Shellfire Box VPN + Lifetime Subscription

    The Shellfire Box easily connects all of your devices, even those that don't offer the possibility to establish a safe vpn connection. Access blocked content and surf safely, no matter where in the world you are located.

    The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
    Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    884 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now