The problem is that in the OnImageLoad sub you compare the height/width of the picShowImage and picContainer pictureboxes... The size of picContainer doesn't change though. Since picShowImage is where the image gets loaded, after it's loaded and resized, you should set the size of picContainer to the same as picShowImage and then make picContainer smaller is it's bigger than the form. Make sense?![]()




Reply With Quote