Results 1 to 2 of 2

Thread: Custom Control Design-Time Resize?

  1. #1

    Thread Starter
    Fanatic Member VBCrazyCoder's Avatar
    Join Date
    Apr 2003
    Posts
    681

    Custom Control Design-Time Resize?

    I have a simple composite control that contains a Label
    with a textbox immediately below the label.

    At design time, when the developer resizes the control, I
    would like to resize the contained Textbox so that its
    width is slightly less than the width of the control.

    Anyone know how to do this?

  2. #2
    Fanatic Member pax's Avatar
    Join Date
    Mar 2001
    Location
    Denmark
    Posts
    840
    When placing the textbox on your usercontrol, place it with the right distance to the borders.
    Then set the Anchor property to Top,Left,Right.
    Now the textbox will automatically keep the distance to the borders.
    I wish I could think of something witty to put in my sig...

    ...Currently using VS2013...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width