Category / Section
How to enable Metro style scroll bar in WinForms TabbedMDIManager?
1 min read
Enable metro style scrollbar
In TabbedMDIManager, Metro style scroll bar can be added by following below steps.
- Need to enable “AutoScroll” property in child Form.
- Need to load ScrollersFrame and attach it child form by using its property named “AttachedTo”.
- Need to set its Visual style as “Metro”.
C#
//To attach TabbedMDIManager in form this.tabbedMDIManager1.AttachedTo = this; //To enable the Scrollbar in the form this.AutoScroll = true; //To add the ScrollerFrame in form this.scrollersFrame1.AttachedTo = this; //To specify the visual style of the ScrollerFrame. this.scrollersFrame1.VisualStyle = Syncfusion.Windows.Forms.ScrollBarCustomDrawStyles.Metro;
VB
'To attach TabbedMDIManager in form Me.tabbedMDIManager1.AttachedTo = Me 'To enable the Scrollbar in the form Me.AutoScroll = True 'To add the ScrollerFrame in form Me.scrollersFrame1.AttachedTo = Me 'To specify the visual style of the ScrollerFrame. Me.scrollersFrame1.VisualStyle = Syncfusion.Windows.Forms.ScrollBarCustomDrawStyles.Metro
Screenshot
Figure 1. Multiple lines used in List item.
Samples: