|
-
Jan 15th, 2004, 04:34 PM
#1
Thread Starter
Frenzied Member
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.
-
Jan 15th, 2004, 05:01 PM
#2
VB Code:
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:
grpCommitments.Location=New Point(X,Y)
I wish I could think of something witty to put in my sig...
...Currently using VS2013...
-
Jan 15th, 2004, 09:55 PM
#3
Thread Starter
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|