TouchToolKit for WinForms | ComponentOne
Zooming Component / Zoom Behavior Properties / C1Zoom Mouse Wheel
In This Topic
    C1Zoom Mouse Wheel
    In This Topic

    You can zoom the Form by Ctrl + Mouse Wheel scroll when the active control does not handle the MouseWheel message. To enable this behavior, use the following code:

    Visual Basic
    Copy Code
    C1Zoom1.AllowMouseWheelZoom = True
    C#
    Copy Code
    c1Zoom1.AllowMouseWheelZoom = true;

    Note:

    • If you set the C1Zoom.AllowPinchZoom property to False, the Form still can zoom, because the Ctrl + MouseWheel message is valid if C1Zoom.AllowMouseWheelZoom = True.
    • If you add a C1ZoomPanel to the Form. Make sure the focus is in the C1ZoomPanel control. Pinch outside the C1ZoomPanel, the C1ZoomPanel will zoom if the C1ZoomPanel.AllowMouseWheelZoom = True.