Quote Originally Posted by dilettante View Post
Bare minimum example with no error checking. Most of the code here is involved in scaling the thumbnail to fit maintaining the original aspect ratio and then rendering it centered in the PictureBox control.

Code:
   ......
Private ImageFile As WIA.ImageFile
Private ImageProcess As WIA.ImageProcess
   ......
Thanks.
On this line:
Code:
Private ImageFile As WIA.ImageFile
it gives me an error: User defined type not defined.
How can I fix it please?

Also, if I have a Picturebox of fixed size, can I do away with the function Form_Resize?
I am trying to have this functionality under a commandbutton (when the user clicks on a commandbutton (and not when the form loads). And the Picturebox on the form has a fixed size.
So, I guess that whole function Form_Resize can be completely left out.
Am I right?

Please advise.
Thanks.