C#.net中的用户控制探针 [英] User Control Probelm in C#.net

查看:77
本文介绍了C#.net中的用户控制探针的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,
我有一个名为ViewImage的用户控件,其中该用户控件包含Menusstrip,Panel和PictureBox.我已在该图片框中插入一个图片文件,我想在运行时放大和缩小图片,我想使用鼠标滚动来放大和缩小.我该如何实现?请提供一个用于鼠标滚动的代码.

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 .

推荐答案

您可以在图片框中实现缩放.
您可能会对这两个链接感兴趣
PictureBox缩放 [ http://blogs.msdn.com/b/calvin_hsia/archive/2008/08/21/8885657.aspx [ ^ ]
http://www.dotnetcurry.com/ShowArticle.aspx?ID=196 [ ^ ]
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[^]


自此是一个用户控件,您需要与控件的作者进行验证;不在这个通用论坛中.
Since it is a user control, you need to verify with the author of the control; not in this generic forum.


这篇关于C#.net中的用户控制探针的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆