Code samples

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

Board index < VintaSoft Imaging < VintaSoft Imaging .NET SDK and Plug-ins Discussions < Code samples

We are migrating to new forums engine, no new registration or posting currently available. TIA for your patience.

WinForms: Scroll WinForms viewer programmatically.



WinForms: Scroll WinForms viewer programmatically.

Post by Alex »

This topic contains C# code snippet that allows to scroll WinForms viewer programmatically:
// 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);


Page 1 from 1: 1