Display Name
❔ Need help with zooming a user control.
I want to zoom a control based on the current cursor location.
I have attached two files:
In Form2.cs, I'm zooming and drawing an image on a Form directly. It works fine as intended but it's not my requirement.
In Form1.cs, I'm zooming a panel using the same logic but it's behaving very differently. Can someone help me fix it?
What I want is to zoom that panel according to the mouse location. e.g. Like we zoom a canvas in Paint.NET or Adobe Illustrator etc. The area under the mouse stays there.
3 replies