problem with skin


Author
Message
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

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
simha mimoun
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
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
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

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
simha mimoun
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
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


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search