AutoSize Default =True

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?Qm9i?=

    #1

    AutoSize Default =True

    In VB.Net 2003 and previous versions new labels were created with
    AutoSize=False. In VB.Net 2005, new labels are created with AutoSize=True.
    Why was it changed? Is there somewhere in VB.Net 2005 where this defalut can
    be changed back to Autosize=False. I am not interested in creating my own
    custom class to fix the problem.
  • Bruce W. Darby

    #2
    Re: AutoSize Default =True

    Bob,

    The option is in the properties for the control. Just select the control on
    your form and set the Autosize property to False.

    Bruce

    "Bob" <Bob@discussion s.microsoft.com wrote in message
    news:B164C893-22C8-47C7-96DA-8F579742C0AE@mi crosoft.com...
    In VB.Net 2003 and previous versions new labels were created with
    AutoSize=False. In VB.Net 2005, new labels are created with
    AutoSize=True.
    Why was it changed? Is there somewhere in VB.Net 2005 where this defalut
    can
    be changed back to Autosize=False. I am not interested in creating my own
    custom class to fix the problem.

    Comment

    • rowe_newsgroups

      #3
      Re: AutoSize Default =True

      On Jan 31, 11:19 pm, "Bruce W. Darby" <kraco...@atcom cast.netwrote:
      Bob,
      >
      The option is in the properties for the control. Just select the control on
      your form and set the Autosize property to False.
      >
      Bruce
      >
      "Bob" <B...@discussio ns.microsoft.co mwrote in message
      >
      news:B164C893-22C8-47C7-96DA-8F579742C0AE@mi crosoft.com...
      >
      In VB.Net 2003 and previous versions new labels were created with
      AutoSize=False. In VB.Net 2005, new labels are created with
      AutoSize=True.
      Why was it changed? Is there somewhere in VB.Net 2005 where this defalut
      can
      be changed back to Autosize=False. I am not interested in creating my own
      custom class to fix the problem.
      I think he means he wants to set the default value of AutoSize to
      False. That way, every label added will have Autosize turned off and
      he won't have to go into properties to change it.

      As far as the OP goes, I did see some code on this newsgroup a long
      time ago that controlled what code was generated by the designer. It
      had to do with passing a value to a constructor parameter when the
      control is added, but thats about all I remember.

      Thanks,

      Seth Rowe

      Comment

      Working...