5,696,576 members and growing! (12,628 online)
Email Password   helpLost your password?
Languages » VB.NET » Windows Forms     Beginner License: The Code Project Open License (CPOL)

Adding custom skins for Forms in VB.Net

By Ferminus Muthu

Custom skins for VB.NET forms, Skinning VB.NET forms, WinForm Skins
VB (VB 8.0, VB 9.0, VB), .NET (.NET, .NET 2.0), Visual Studio (VS2005, Visual Studio), WinForms, Design

Posted: 4 Apr 2008
Updated: 12 Jun 2008
Views: 18,114
Bookmarked: 38 times
Announcements
Loading...



Search    
Advanced Search
Sitemap
23 votes for this Article.
Popularity: 5.41 Rating: 3.97 out of 5
2 votes, 9.1%
1
1 vote, 4.5%
2
3 votes, 13.6%
3
5 votes, 22.7%
4
11 votes, 50.0%
5
Note: This is an unedited contribution. If this article is inappropriate, needs attention or copies someone else's work without reference then please Report This Article

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


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. If you want to comment about my code feel free to contact me by my mail tferminus@gmail.com
Occupation: Software Developer
Location: India India

Other popular VB.NET articles:

Article Top
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
 Msgs 1 to 11 of 11 (Total in Forum: 11) (Refresh)FirstPrevNext
Generalsugestionmemberrio_p4:43 7 Nov '08  
GeneralRe: sugestionmemberArmando Airo'9:11 14 Nov '08  
GeneralFlickering Problem!memberfarizvi21:49 17 Jul '08  
GeneralBug still there!membersjcardinale11:37 12 Jun '08  
GeneralBug correctedmemberFerminus Muthu2:44 12 Jun '08  
GeneralRe: Bug correctedmemberSelvin3:18 12 Jun '08  
GeneralRe: Bug correctedmembermscdex7:04 12 Jun '08  
General[Message Removed]memberMojtaba Vali1:50 25 May '08  
GeneralSmall bugmemberSelvin5:30 21 May '08  
GeneralcoolmemberAbhijit Jana0:45 10 May '08  
GeneralMoving the skinned formmemberKong Ragge0:58 7 May '08  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 12 Jun 2008
Editor:
Copyright 2008 by Ferminus Muthu
Everything else Copyright © CodeProject, 1999-2008
Web13 | Advertise on the Code Project