Nevron Forum

skin.Load....

https://www.nevron.com/Forum/Topic3216.aspx

By JH Kwon - Tuesday, March 9, 2010

Hi,

I'm having issue about skin.Load() function.

Can anyone tell me how I can apply Nevron skin(Office 2007 Blue) in C#.

I use Nevron.UI.WinForm.Skins.dll (file version : 10.1.8.12).

===============================================

resource.ResourceType = SkinResourceType.GlobalAssembly;
resource.AssemblyName = "Nevron.UI.WinForm.Skins";

resource.SkinName = "Office 2007 Blue";

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

================================================

skin.Load(resource) return false.

Is there a way to apply this skin in C#?

Please check this code..

thank you.

 

 

By Angel Chorbadzhiev - Tuesday, March 9, 2010

Hello JH Kwon,

Please, type the skin name without spaces - "Office2007Blue".

If still cannot load the skin, check also whether the skin assembly Copy Local property is set to true.

Regards,

Angel.

By JH Kwon - Wednesday, March 10, 2010

Thank you, Angel.

But I don't know how to check whether the skin assembly Copy Local property is set to true.

please tell me a way how to check...

regards,

JH Kwon.

 

By Angel Chorbadzhiev - Wednesday, March 10, 2010

Hi JH Kwon,

In the Solution Explorer select the assembly located in the References folder and then click on property panel.

There you can find Copy Local property.

Regards,

Angel.