The following code demonstrates how to persist a NPalette state to a file:
C# |
Copy Code
|
---|---|
this.nButton1.Palette.SaveToFile(@"C:\myPalette.xml"); //copy this palette to another button this.nButton2.Palette.Copy(NPalette.FromFile(@"C:\myPalette.xml"); |
Visual Basic |
Copy Code
|
---|---|
Me.nButton1.Palette.SaveToFile(@"C:\myPalette.xml") 'copy this palette to another button Me.nButton2.Palette.Copy(NPalette.FromFile(@"C:\myPalette.xml") |