|
-
Nov 22nd, 2011, 12:17 AM
#1
Thread Starter
PowerPoster
Stretch all images on form when form is maximized?
Hi there, I am finishing up a math game I made for elementary students, and while they thought it was awesome (thanks on a large part to your guys help ), I can't help but notice it doesn't look very big on a smartboard. Ofcourse the smaller resolutions of my netbook I used to make it doesn't help haha, but I was wondering..
I can set the form to allow it to be maxamized, but I have a fair bit of images on it. Is there a way to have them stretch so they are in the same spot when the form is maxed just "Bigger"?
Like if I max the form now, the form goes max, but the images on it stay in their original positions, and are the same size.
Thanks for your help!
-
Nov 22nd, 2011, 01:02 AM
#2
Re: Stretch all images on form when form is maximized?
When you re-size a Form, the Form_Resize event is triggered so you can adjust the position and sizes of controls to suit the new size of the Form. I guess you'd have to increase / decrease the Left and Width properties of your controls in proportion to the new Form Width and similar for the Top and Height in proportion to the new ForM Height. Just a bit of maths for you ! (Busman's Holiday perhaps) 
It's not something I've ever done, but I suspect there will be a multitude of Posts here which have asked a similar question.
EDIT: I guess you might have to 'tweak' some of the Font Sizes used by the controls such that they grow and shrink according to the size of the control
Last edited by Doogle; Nov 22nd, 2011 at 01:05 AM.
-
Nov 22nd, 2011, 01:06 AM
#3
Thread Starter
PowerPoster
Re: Stretch all images on form when form is maximized?
That makes sense, but just out of curiosity, if I set the controls to be a certain size and at a certain place when it is maxed on my screen, would they be in a different spot when maxed on a different computer, say one with a larger resolution?
-
Nov 22nd, 2011, 01:12 AM
#4
Re: Stretch all images on form when form is maximized?
Now you're getting into areas where I have no experience or knowledge. I suspect you can take the screen resolution into account during the re-size calculations - however, I haven't the faintest idea how to do it.
Hopefully LaVolpe or another of the GUI Gurus will pop by and help out. (There may be something in the VB6 Codebank as I'm sure this must be a common requirement.)
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
|