|
-
Jul 25th, 2005, 07:50 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Restricting a picture box size to the form size.
Hello,
I have form and a pic box on that. Now I have auto resize set to True. But if the picture is bigger than the form part of the picture gets lost behind the form. Is there any way to make the picture box only go so big but still have the auto size on true?
Thank you for your help and have a great day!
Stilekid007
-
Jul 25th, 2005, 07:53 PM
#2
Fanatic Member
Re: restricting a picture box size to the form size.
Yeah, in the picbox_resize event...
VB Code:
if picbox.width > me.width then picbox.width = me.width
if picbox.height > me.height then picbox.height = me.height
Try that, replacing picbox with the picturebox's actual name of course.
-
Jul 25th, 2005, 08:02 PM
#3
-
Jul 25th, 2005, 08:13 PM
#4
Thread Starter
Hyperactive Member
Re: Restricting a picture box size to the form size.
I am trying to make the image smaller. However - Nova's code worked great! Thank you all for your help and solutions!
Stilekid007
 Originally Posted by stilekid007
-
Jul 26th, 2005, 02:39 PM
#5
Fanatic Member
Re: [RESOLVED] Restricting a picture box size to the form size.
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
|