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 : Nov 16th 2018).
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?

 

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:

[C#] private void MainForm_Load(object sender, System.EventArgs e) { this.paletteGroupBar.LoadPalette("C:\\Program Files\\Syncfusion\\Essential Suite\\2.0.5.0\\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\\2.0.5.0\\Diagram\\Symbol Palettes\\Electrical Symbols.edp") End Sub

Article ID: Published Date: Last Revised Date: Platform: Control:
161 04/30/2011 07/10/2014 WinForms Diagram
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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