can anybody tell me how to make an image resize to a picture box rather than the other way round, as is normally used. It's a bitmap by the way.
Printable View
can anybody tell me how to make an image resize to a picture box rather than the other way round, as is normally used. It's a bitmap by the way.
The easy way to do this is to use a image instead of a picturebox and set the stretch property to true. If you want to use a picturebox, you'll have to dig into the windows API's. Hope it helped.
The fastest way to do this would be to have a second picture box hidden and use the paintpicture method (Check the help file) you can specify the size of the destiantion window using this method. Warning taking a large file and shrinking it down small can give you some weird effects of the image is to small.
Hope this helps
Richard Barnes
Lead Design Scientist
Coynet International/Public Access Technologies