Results 1 to 3 of 3

Thread: resizing controls easier than this [RESOLVED]

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489

    resizing controls easier than this [RESOLVED]

    If chkCommitmentMade.Checked = True Then
    grpCommitments.Width = 200
    grpCommitments.Height = 96
    rdoAnyDay.Visible = True
    rdoAnyTime.Visible = True


    is there a better/easier way to resize my groupbox container?

    I'm only trying to trim my code as thin as possible.
    Last edited by Andy; Jan 15th, 2004 at 11:09 PM.

  2. #2
    Fanatic Member pax's Avatar
    Join Date
    Mar 2001
    Location
    Denmark
    Posts
    840
    VB Code:
    1. grpCommitments.Size=New Size(200,96)
    This will also make it smoother to look at because both coordinates are set at once.

    When you set the width and height individually, you can actualy see the width change first, and then the height (at least if you have several controls in the groupbox).

    This also goes for Left and Top. There you could use
    VB Code:
    1. grpCommitments.Location=New Point(X,Y)
    I wish I could think of something witty to put in my sig...

    ...Currently using VS2013...

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    I thought there'd be a way to use the two together. Thanks a lot!!

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