Click here to Skip to main content
Click here to Skip to main content

Adding custom skins for Forms in VB.Net

By , 12 Jun 2008
 

Introduction

In this project I have created an User control which can be used in Windows Form applications in VB.NET. Using this control you can add a New look to your Forms. I wont say this as a perfect code and method for adding skins, But there may be other ways which are better than this. I believe this as a simple way for adding skins to Win Forms.
Form-Skin.gif
Download Form_Skin.zip - 218.2 KB

Background

I was searching for some free skinner control to add for my Project. But I didnt find anything. Finally I got a small clue in a website to create skins. Thanks for that author. This control is fully made of panel controls. And I created the images for this skin in Photoshop. May or may not similar codes are available in the Code Project. Feel free to contact me for any suggestions about this control. You can get any help from me through e-mail.

Using the code

No special coding is needed for using this control. Just add the control in your Toolbox by Right clicking on the toolbox and selecting Choose Items and then Skinner.dll from the location you have stored. After this the Control is ready to use and you can drag and drop the control in the form to use this control. The Caption for the skinned form is read from the Form's text property. The icon is also taken from the icon which is set to the original form. The form's background is set to Transparent by using the Transparency key property. This will be set by the Skinner control. The following line shows this

 Me.ParentForm.TransparencyKey = System.Drawing.Color.FromArgb(121, 121, 121)
        

Remember to set the Language of your code snippet using the Language dropdown.

History

This is the predecessor version for my Skin controls in VB.NET. 6 April 2008. You can expect for the updated version soon with lots of improvements and almost all functionalities of a form like changing the position of form by dragging the title bar.

License

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

About the Author

Ferminus Muthu
Technical Lead Endeavour Software Technologies
India India
Member
I am working as a Technical Lead in Bangalore. I started my development career using VB 6.0. I was interested in creating windows based applications. Later I worked on web based applications with ASP.Net. Now I am working in WCF web services for Iphone and Ipad applications.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
QuestionThanksmemberMuslim Bahdili11 Apr '13 - 18:54 
GeneralMy vote of 5memberJack_32115 May '12 - 1:21 
GeneralMy vote of 5memberCJ736 Mar '12 - 18:11 
Very good work.
GeneralMy vote of 5membermanoj kumar choubey19 Feb '12 - 23:24 
GeneralMy vote of 3memberSwelihle30 Aug '11 - 23:15 
QuestionExcellent ideamemberjlkdaslkfjd22 Aug '11 - 0:36 
Generalform skinningmemberTeddyW18 Jun '11 - 0:02 
GeneralGreat article my friend! It helped me at..memberTheRomanian18 Apr '11 - 4:17 
GeneralHelpmembersteve02113 Apr '11 - 5:20 
GeneralWhatsthishelpbuttonmemberMember 324988420 Sep '10 - 2:44 
GeneralMy vote of 5memberFreshbrew28 Aug '10 - 0:34 
GeneralProblem with window state at runtimememberusha gupta19 Jul '10 - 2:47 
GeneralC# version and Thanks a Ton...memberMember 469050514 Feb '10 - 9:36 
GeneralRe: C# version and Thanks a Ton...memberFerminus Muthu7 Mar '10 - 22:39 
GeneralRe: C# version and Thanks a Ton...memberPriya Billava30 Mar '10 - 18:57 
GeneralSomething More Challenging...memberJoshua Eiland13 Feb '10 - 19:37 
GeneralRe: Something More Challenging...memberFerminus Muthu7 Mar '10 - 22:38 
GeneralMy vote of 1memberseinkraft24 Jan '10 - 5:32 
Generalhi..... gr8 stuffmemberArunabh Nag22 Jul '09 - 12:30 
GeneralGreat start.....memberDJ Matthews17 Jul '09 - 9:49 
QuestionHow did you make it??membervietnam_boi_967 Jul '09 - 13:34 
Generalthanksmemberagdeniz17 May '09 - 20:47 
GeneralMy vote of 1mvpDave Kreskowiak30 Jan '09 - 10:07 
GeneralForm Stretch problemmemberMember 369554613 Jan '09 - 20:01 
GeneralRe: Form Stretch problemmemberawparso25 Oct '11 - 11:17 
Generalsugestionmemberrio_p7 Nov '08 - 3:43 
GeneralRe: sugestionmemberArmando Airo'14 Nov '08 - 8:11 
GeneralRe: sugestionmemberwolf9s28 Jul '11 - 0:18 
GeneralFlickering Problem!memberfarizvi17 Jul '08 - 20:49 
GeneralBug still there!membersjcardinale12 Jun '08 - 10:37 
GeneralBug correctedmemberFerminus Muthu12 Jun '08 - 1:44 
GeneralRe: Bug correctedmemberSelvin12 Jun '08 - 2:18 
GeneralRe: Bug correctedmembermscdex12 Jun '08 - 6:04 
GeneralRe: Bug correctedmemberwolf9s28 Jul '11 - 0:21 
General[Message Removed]memberMojtaba Vali25 May '08 - 0:50 
GeneralSmall bugmemberSelvin21 May '08 - 4:30 
GeneralcoolmemberAbhijit Jana9 May '08 - 23:45 
GeneralMoving the skinned formmemberKong Ragge6 May '08 - 23:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 12 Jun 2008
Article Copyright 2008 by Ferminus Muthu
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid