Articles in this section
Category / Section

How to apply WinForms ScrollerFrame to UserControl?

2 mins read

Apply ScrollersFrame to UserControl

The WinForms 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.

Conclusion

I hope you enjoyed learning about how to apply WinForms ScrollerFrame to UserControl.

You can refer to our WinForms ScrollerFrame’s feature tour page to know about its other groundbreaking feature representations. You can also explore our documentation to understand how to present and manipulate data. 

For current customers, you can check out our WinForms components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our WinForms ScrollerFrame and other WinForms components.

If you have any queries or require clarifications, please let us know in comments below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied