【发布时间】:2017-10-20 09:02:41
【问题描述】:
我有一个 C# 中的 WindowsForms UI。我有一个面板和一个图片框。 我只是通过表单获取鼠标滚轮事件,然后在面板中缩放 PictureBox
public MainWindow()
{
InitializeComponent();
this.MouseWheel += new System.Windows.Forms.MouseEventHandler(this.zoom_handler);// Capture Mouse wheel event
}
问题是当我使用 Trackbar 时,Trackbar 会收到 mouseWheel 事件,我无法再缩放图像。我无法通过单击 PictureBox 或 Panel 来释放它。现在我必须做什么?
【问题讨论】:
标签: c# windows-forms-designer mousewheel