title: How to have a scrolling panel with a picturebox inside?
body: <p>I have a panel that is anchored to the top, left, right, bottom of a Windows form.  Inside that panel is a picturebox.  That picturebox is resized up and down via a TrackBar control (which is on another panel on the same form with 'Dock' property set to Top), and re-centered every time it is resized. The picturebox occasionally grows either too wide or too tall for the panel to contain it.  How can I add horizontal and vertical scrollbars to the panel to allow it to 'pan' the image within the picturebox?  I've tried using the autoscroll property, but I can't seem to get it to do anything and the MSDN documentation is somewhat vague and lists some bugs. I've looked over the previous questions here on stack, but can't find anything that works for my situation.  Any ideas?</p>
  
  <p>I'm using Visual Studio 2010 and a VB.NET project, but VB.NET or C# recommendations would be great.</p>
  
  <p>Thanks in advance!</p>