Click here to Skip to main content
Licence CPOL
First Posted 4 Apr 2008
Views 132,212
Bookmarked 103 times

Adding custom skins for Forms in VB.Net

By | 12 Jun 2008 | Article
Custom skins for VB.NET forms, Skinning VB.NET forms, WinForm Skins

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

Software Developer

India India

Member

I am a beginner Level Software Developer working in a Software Firm. My hobbies are listening to Music and dreaming. Also I have the bad habit of programming and doing such projects.

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

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralMy vote of 5 PinmemberJack_3211:21 15 May '12  
GeneralMy vote of 5 PinmemberCJ7318:11 6 Mar '12  
GeneralMy vote of 5 Pinmembermanoj kumar choubey23:24 19 Feb '12  
GeneralMy vote of 3 PinmemberSwelihle23:15 30 Aug '11  
QuestionExcellent idea Pinmemberjlkdaslkfjd0:36 22 Aug '11  
Generalform skinning PinmemberTeddyW0:02 18 Jun '11  
GeneralGreat article my friend! It helped me at.. PinmemberTheRomanian4:17 18 Apr '11  
GeneralHelp Pinmembersteve0215:20 13 Apr '11  
GeneralWhatsthishelpbutton PinmemberMember 32498842:44 20 Sep '10  
GeneralMy vote of 5 PinmemberFreshbrew0:34 28 Aug '10  
GeneralProblem with window state at runtime Pinmemberusha gupta2:47 19 Jul '10  
GeneralC# version and Thanks a Ton... PinmemberMember 46905059:36 14 Feb '10  
GeneralRe: C# version and Thanks a Ton... PinmemberFerminus Muthu22:39 7 Mar '10  
GeneralRe: C# version and Thanks a Ton... PinmemberPriya Billava18:57 30 Mar '10  
GeneralSomething More Challenging... PinmemberJoshua Eiland19:37 13 Feb '10  
GeneralRe: Something More Challenging... PinmemberFerminus Muthu22:38 7 Mar '10  
GeneralMy vote of 1 Pinmemberseinkraft5:32 24 Jan '10  
Generalhi..... gr8 stuff PinmemberArunabh Nag12:30 22 Jul '09  
GeneralGreat start..... PinmemberDJ Matthews9:49 17 Jul '09  
QuestionHow did you make it?? Pinmembervietnam_boi_9613:34 7 Jul '09  
Generalthanks Pinmemberagdeniz20:47 17 May '09  
GeneralMy vote of 1 PinmvpDave Kreskowiak10:07 30 Jan '09  
GeneralForm Stretch problem PinmemberMember 369554620:01 13 Jan '09  
GeneralRe: Form Stretch problem Pinmemberawparso11:17 25 Oct '11  
Generalsugestion Pinmemberrio_p3:43 7 Nov '08  

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

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

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