locked
label size RRS feed

  • Question

  • This issue is driving crazy. I have been using vb6 for a while, and I finally got me my hands on the vb.net. I am following a tutorial by MS to develop a basic application and a simple task cannot be completed for whatever reasons! HELP! The tutorial asks to drag the label object from the toolbox and drop in the tab control container. Then, go to the label size property and adjust the size to some different dimansion. Basic stuff, right? It won't let me do it!!! After I enter the new dimensions (which by the way are not large or very small), the label size (both width and height) resets back to its original dimensions!! I have the vb.net sp1 installed. Does anyone have any ideas on this bizzare behaviour? THank you.
    Sunday, February 4, 2007 12:48 AM

Answers

  • There's a few possibilities:
    - Labels have .AutoSize set to True by default
    - if the Label is docked to a side of its parent-container, then the sizechange won't happen
    - if you're getting an 'invalid size' error, then you've probably made the mistake I regularly make: if there are multiple values to be given in the properties explorer, like a width and height value for size, then they're seperated by a semicolon(;) rather than a comma(,) - width; height


    Sunday, February 4, 2007 1:49 AM

All replies

  • There's a few possibilities:
    - Labels have .AutoSize set to True by default
    - if the Label is docked to a side of its parent-container, then the sizechange won't happen
    - if you're getting an 'invalid size' error, then you've probably made the mistake I regularly make: if there are multiple values to be given in the properties explorer, like a width and height value for size, then they're seperated by a semicolon(;) rather than a comma(,) - width; height


    Sunday, February 4, 2007 1:49 AM
  • Just found the info above solved the problem I was having resizing labels.  Autosize was set to true.   Thank you very much, found that a big help
    Saturday, March 19, 2011 11:00 PM