Profile Picture

problem with skin

Posted By simha mimoun 14 Years Ago
Author
Message
Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

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



simha mimoun
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 4, Visits: 1

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 

 



Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

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?



Best Regards,
Nevron Support Team



simha mimoun
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 4, Visits: 1

Hello,

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

         NSkin skin = new NSkin();
         if (skin.Load(resource))
         {
            NSkinManager.Instance.Skin = skin;
         }

 

but the skin is applied only to the form.

I would like it to be applied also to the controls in the form.

How can I do this?

There is a way to set skin to the entire application in one step?

thanks for your help.

simha





Similar Topics


Reading This Topic