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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How do I set up my application to add a palette automatically when loaded?

Platform: WinForms |
Control: Diagram

How do I set up my application to add a palette automatically when loaded?

You can use the PaletteGroupBar's LoadPalette method to programmatically set up your application to load the desired palatte. For example, in the QuickStart sample you could add the following code in the MainForm's Load event for the Electrical Symbols Palette that ships with Essential Diagram to be automatically loaded when you run this application:



private void MainForm_Load(object sender, System.EventArgs e) { this.paletteGroupBar.LoadPalette("C:\\Program Files\\Syncfusion\\Essential Suite\\\\Diagram\\Symbol Palettes\\Electrical Symbols.edp"); }[VB.NET] Private  Sub MainForm_Load(ByVal sender As Object, ByVal e As System.EventArgs) Me.paletteGroupBar.LoadPalette("C:\\Program Files\\Syncfusion\\Essential Suite\\\\Diagram\\Symbol Palettes\\Electrical Symbols.edp") End Sub 


2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
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