Image control used as a "zoomed" window

Giganews Newsgroups
Subject:Image control used as a "zoomed" window
Posted by: Andreas Tillman
Date:Sun, 31 May 2009

So..
I made this program, that will show anything that's under the mouse, in the form's Image control (Zoomed 1x-4x).
But, it doesn't seem to be able to handle a re size of the main form. The Image stays just the same size, eventhough I have it set to align with client.
However, if I don't turn on the timer that handles the zooming, it is re sizable. But only till I turn the timer on. After that it will stay the same size even if I turn the timer off again.
I've tried about anything I could come up with, and did google but found nothing that could possibly help me.

Any of you know how to do this, being able to re size the form+image at runtime, so the image actually does re size itself too?

Replies