Hi Shima,
Try to put the code that you post in the Main method of the application before the creation of the main form.
Best Regards,Nevron Support Team
Hello,
I changed my application:
now I use a .net Form (I don't want to use a NForm) and I want to change the skin of all nevron controls in the form in one step.
i set the local copy property of the Nevron.UI.Winform.Skin.dll to true
and In the load event of the form I write this code:
NSkinResource resource = new NSkinResource(); resource.ResourceType = SkinResourceType.GlobalAssembly; resource.AssemblyName = "Nevron.UI.WinForm.Skins"; resource.SkinName = "Office2007Black";
NSkin skin = new NSkin(); if (skin.Load(resource)) { NSkinManager.Instance.Skin = skin; }
But this is doesn't work.
How can I do this?
There is a way to set skin to all nevron controls in one form
or I have to check which of the form's controls are nevron controls and then set to them the palette.ColorScheme property that I want?
thanks for your help
simha
Hello Simha,
Since the skin is applied to the form it should be applied to all Nevron UI controls in it.
Are the controls in that form belongs to Nevron UI suite?
I try to use your skin option and I need help:
I use a NForm and i set the local copy property of the Nevron.UI.Winform.Skin.dll to true
my source code is
NSkinResource resource = new NSkinResource(); resource.ResourceType = SkinResourceType.GlobalAssembly; resource.AssemblyName = "Nevron.UI.WinForm.Skins"; resource.SkinName = "Office2007Blue"; // --> NG
//resource.SkinName = "Orange"; // --> OK //resource.SkinName = "Vista"; // --> OK //resource.SkinName = "Officd2007Black"; // --> OK
but the skin is applied only to the form.
I would like it to be applied also to the controls in the form.
There is a way to set skin to the entire application in one step?
thanks for your help.