dejaman Posted August 1, 2003 Posted August 1, 2003 hi I have a problem putting ScrollBars on a PictureBox in C#. I used the Dock property to dock the scroll bars on the right and bottom side of the PictureBox but what I got is not what I wanted... I can't explain... See the attachment (JPG pic)... thanks Quote
*Gurus* divil Posted August 1, 2003 *Gurus* Posted August 1, 2003 You'd have to use nested panels to achieve this with docking. Dock a panel of the right size to the bottom, then another panel the size of the small square to the right of that. You can then put your horizontal scrollbar in the first panel and set its dock to Fill, and your right scrollbar should be just the same. Alternatively, use anchoring. You wouldn't need any nested panels then. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.