By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,524 Members | 1,475 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,524 IT Pros & Developers. It's quick & easy.

Problem Re-scaling Labels Groupbox on a windows form

P: n/a
When my form loads I have 3 items perfectly aligned:
'_________________________________________________ _______ (Width,

Startup form name is "strForm" (w800, h570) Location(0, 0)
Picture Box control = "picBackGround" (w800, h570) Location
Group Box Control gbBox(w330, h256) Location (38, 72)

I have also written this code to rescale the Picturebox on form
The picture box is acting as my background image.

Resize form Proc:

picBackGround.SizeMode = PictureBoxSizeMode.StretchImage
picBackGround.Width = sender.width
picBackGround.Height = sender.height

My problem is that I cannot get my groupbox to scale correctly when I
resize the form. I'm sure this is easy to do but I just cannont
figure it out. I'm trying to make it so that the groupbox rescales
when the form does and and maintains it's top right position, so that
the group box does not appear as if it is floating around in the

Any help would be greatly appreciated,

Nov 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.