Windows Develop Bookmark and Share   
 index > Windows Forms Designer > How do I add scrolling to a derived Panel?
 

How do I add scrolling to a derived Panel?

Hi,

I have inherited a DiagramPanel from Windows.Forms.Panel class. I have my own painting logic to display my diagram. I have added my panel to a form and its size is 100, 100 and my diagram size is 100, 400 (computed programmatically). I want to show vertical scrollbar to my DiagramPanel and let the user scroll.

I have enabled AutoScroll=true for my panel. Where do I set that my diagram size is 100,400 and I want to display a vertical scrollbar.

Any pointers or examples would be appreciated.

Thanks,
- Reddy
MigrationUser 1  Thursday, April 24, 2003 9:25 AM
Set the AutoScrollMinSize property on your panel.

Have a nice day,
Robert W. Grubbs
MigrationUser 1  Thursday, April 24, 2003 11:43 AM

You can use google to search for other answers

Custom Search

More Threads

• Switching form
• how to add context menu in test results window through visual studio integration package sdk
• Transparency - Controls on top of controls just makes a hole in the windows form
• Usercontrol with a DataSource property (winform!) ???
• Track changes to properties in the Properties Grid
• Problems with WinForm Components height
• Controls emulating Mac interface
• New Button Design VB Express
• VB 2008 Create Buttons at Runtime with Event Handlers
• System Colors