
PictureBox with scrollbars
Quote:
>Just add the Scrollbars to the Picturebox your selft... just use
>setwindowlong and add Ws_Vscroll or Ws_Hscroll and there you have it...
>yes... and a little subclassing is required... not very much though
???!!!
And just what is the picturebox scrolling? Considering you are assigning
the image to the device context of the picturebox, which is limited to the
size of that control, I can't see how adding a scrollbar through API will
provide any functionality.... you can't scroll the device context.
If you add a picturebox *insider* the base pixbox, size it larger than the
base pixbox, then add scrollbars to reposition the inner pixbox within the
base pixbox, that's a different story. This technique is explained in the
MSKB article on creating a scrollable viewport.
--
Randy Birch, MVP Visual Basic
VBnet, The Visual Basic Developers Resource Centre
http://www.mvps.org/vbnet
Common Controls Replacement Project Member
http://www.mvps.org/ccrp