WinForms: Scroll WinForms viewer programmatically.

Code samples for VintaSoft Imaging .NET SDK. Here you can request a code sample.

Moderator: Alex

Post Reply
Alex
Site Admin
Posts: 2305
Joined: Thu Jul 10, 2008 2:21 pm

WinForms: Scroll WinForms viewer programmatically.

Post by Alex »

This topic contains C# code snippet that allows to scroll WinForms viewer programmatically:

Code: Select all

// get current scroll position of image viewer
System.Drawing.PointF scrollPosition = imageViewer1.AutoScrollPositionEx;
// change current scroll position of image viewer
imageViewer1.AutoScrollPositionEx = new System.Drawing.PointF(scrollPosition.X, scrollPosition.Y + 50);
Post Reply