Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
My problem now is that if I open another form from this form, the new form has no styling at all, not even XP, just windows classic look. I know this sounds obvious because the actual style is only associated with form1 in the load function, however, I placed the same piece of code in form2's load function but nothing changes.

Where can I place to above code so all the forms within my project will be styled?

Kind regards..,

:)

What I have tried:

private void Form1_Load(object sender, EventArgs e)
        {
            Size presize = this.Size; // Get the correct form size before the GUI mucks it up.
            USkinSDK.USkinInit("", "", "VP.msstyles"); // Replace the text accordingly with your msstyles file.
            USkinSDK.USkinLoadSkin("VP.msstyles"); // And again here.
            this.Size = presize; // Re-establish the form size.
        }


I used this code for skin my Form1. :)
Posted
Comments
Richard MacCutchan 24-Aug-19 4:23am    
You need to check with the USkinSDK (whatever that is) help forum.
smallprogrammers 24-Aug-19 11:59am    
Its a UI for C# winform. Apply msstyles in winform. there is no USkin SDK forum.
Richard MacCutchan 24-Aug-19 13:04pm    
It's a third party library so you need to try the people who created it.
smallprogrammers 25-Aug-19 12:13pm    
it's so old project..about 12 years ago project i found it here : https://www.codeproject.com/Articles/13946/Use-the-Free-USkin-Toolkit-to-Skin-your-Applicatio
Richard MacCutchan 25-Aug-19 12:53pm    
The author has not been active here for some years so you will have to debug the code for yourself. But my advice is not to use this sort of package unless you really understand how it works.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900