Click to See Complete Forum and Search --> : resizing picture
fkheng
Feb 21st, 2002, 09:31 AM
Is there anyway of coding the resizing of an imported picture by the user in VB according to my picturebox size? (the program code will do it, so it becomes automated, the user doesn't have to resize it manually)???
/\/\isanThr0p
Feb 21st, 2002, 10:14 AM
you could put an image control inside of the picbox
set the stretch property to true and set the image controls borders according to the picbox.
/\/\isanThr0p
Feb 21st, 2002, 10:14 AM
well another way is to load the picture into some DC and than stretchblt it onto the picbox. (If you do not want another control)
fkheng
Feb 21st, 2002, 07:06 PM
how do i enable a scrollbar for a form?
also, watever u told me above worked! thank you, i had to use an imagebox instead of a picture box.
The thing is that it only works for imageboxes in a form.
Any suggestions for how I can apply the same in the MDI parent?
/\/\isanThr0p
Feb 22nd, 2002, 06:46 AM
you should be able to apply a picture box to the mdi parent. Just use the picture box as container for you image control!
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.