Print Page | Close Window

SkinFramework disappearing bug?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=16051
Printed Date: 30 January 2025 at 12:34pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SkinFramework disappearing bug?
Posted By: ilodewij
Subject: SkinFramework disappearing bug?
Date Posted: 21 January 2010 at 9:56am
Hi,

I've been playing around with SkinFramework and it seems to work nicely for VB6.

In .net2.0 I do have an issue. I don't know if my program setup is wrong or not, but this is the situation.

I have one windows form named Template. Form1 and Form2 inherit the settings of the Template form. In the Template form I have configured the settings for SkinFramework. On form1 I have a button which opens form2.

When I run the program, form1 opens with the correct skin. When I click my button, form2 opens with the correct skin.

Now, when I close form2, the skin applied by the SkinFramework disappears from all open forms and I have the default System skin.

Now I am wondering, if my setup is correct. Can I define SkinFramework on a template form for use by other forms, or do I configure SkinFramework on every form present in my solution? Or, is there a third solution?

This is the code used in the constructor of the Template form (the control is put on the form with the designer):

public Template()
{         
    InitializeComponent();           

    string skinFolder = System.IO.Path.GetDirectoryName(Application.ExecutablePath) + "\\Office2007.cjstyles";
    axSkinFramework.LoadSkin(skinFolder, "NormalAqua.ini");
    axSkinFramework.ApplyWindow(this.Handle.ToInt32());   
}


-------------
Product: Xtreme SkinFramework Bundle ActiveX 2009 (13.2.1)
Platform: Windows XP (32bit) - SP 3
Language: VB6.0/.Net2.0 (VS2008)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net