)
We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to apply WinForms ScrollerFrame to UserControl?

Platform: WinForms |
Control: ScrollersFrame |
Published Date: May 20, 2015 |
Last Revised Date: January 10, 2020

Apply ScrollersFrame to UserControl

The ScrollersFrame can be attached to UserControl by using its AttachFrame function. The ScrollersFrame is assigned to all the controls by using its AttachedTo property.

C#

//Enables the AutoScroll property to assign the ScrollesFrame
this.gradientPanel1.AutoScroll = true;
//Attaches the ScrollerFrame to GradientPanel  
this.scrollersFrame1.AttachedTo = gradientPanel1;
//This function is used to assign the ScrollersFrame to windows form control
this.scrollersFrame1.AttachFrame(this.gradientPanel1);
//Sets ScrollerFrame visualstyle
this.scrollersFrame1.VisualStyle = Syncfusion.Windows.Forms.ScrollBarCustomDrawStyles.Office2010;

VB

'Enables the AutoScroll property to assign the ScrollesFrame
Me.gradientPanel1.AutoScroll = True
'Attaches the ScrollerFrame to GradientPanel  
Me.scrollersFrame1.AttachedTo = gradientPanel1
'This function is used to assign the ScrollersFrame to windows form control
Me.scrollersFrame1.AttachFrame(Me.gradientPanel1)
'Sets ScrollerFrame visualstyle
Me.scrollersFrame1.VisualStyle = Syncfusion.Windows.Forms.ScrollBarCustomDrawStyles.Office2010

 

Note:

The previously attached control is released by using the function named “AttachFrame”.

 

Show the ScrollersFrame attached to GradientPanel

Figure 1: ScrollersFrame is attached to Gradient panel

Samples:

C#: http://www.syncfusion.com/downloads/support/directtrac/135929/ScrollersFrame1918526364.zip

VB: http://www.syncfusion.com/downloads/support/directtrac/135701/ScrollersFrame_VB862974338.zip

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon