Category / Section
How do I set up my application to add a palette automatically when loaded?
1 min read
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