Scrollable PictureBox control

The PictureBox control in .NET does not have scroll bars, however, it is actually really easy to create a PictureBox control with scroll bars enabled. All you have to do is to drop a panel control onto a form, and set the AutoScroll property to true.

this.panel1.AutoScroll = true;

And drop a PictureBox control inside the panel and set the SizeMode to AutoSize.

this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;

That's it.
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati
«June»
SunMonTueWedThuFriSat
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011