Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi friends,
I have a Usercontrol that is called ViewImage.In that Usercontrol contains Menusstrip, Panel and PictureBox. I have insert a picture file in that Picture Box and I want to Zoom In and Zoom Out a Picture at runtime and i want to Zoom In and Zoom Out using Mouse Scroll .How can i achieve this? Please give a Code for Mouse Scroll .
Posted
Comments
Sergey Alexandrovich Kryukov 7-Jan-12 1:39am    
How can we know how you can achieve that? Maybe poorly, but maybe brilliantly. :-)
Doing this code for you is a bit beyond the format of CodeProject.
--SA

You can implement zoom in a picture box.
These two links maybe of some interest to you
PictureBox Zoom[^]
http://blogs.msdn.com/b/calvin_hsia/archive/2008/08/21/8885657.aspx[^]
http://www.dotnetcurry.com/ShowArticle.aspx?ID=196[^]
 
Share this answer
 
Comments
Kim Togo 7-Jan-12 2:44am    
Help full links. My 5.
Abhinav S 7-Jan-12 5:45am    
Thanks.
Since it is a user control, you need to verify with the author of the control; not in this generic forum.
 
Share this answer
 
v2
Comments
Mehdi Gholam 7-Jan-12 2:33am    
Please spell check your answer when posting, thanks.
Kim Togo 7-Jan-12 2:45am    
What?
An UserControl - http://msdn.microsoft.com/en-us/library/system.windows.forms.usercontrol.aspx
"Provides an empty control that can be used to create other controls."

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900