Click here to Skip to main content
11,702,130 members (64,786 online)
Click here to Skip to main content

Adding custom skins for Forms in VB.Net

, 12 Jun 2008 CPOL 207.4K 16.2K 124
Rate this:
Please Sign up or sign in to vote.
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)

Share

About the Author

Ferminus Muthu
Technical Lead Endeavour Software Technologies
India India
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.

You may also be interested in...

Comments and Discussions

 
GeneralMy vote of 5 Pin
johnylee1920-Jan-14 6:44
memberjohnylee1920-Jan-14 6:44 
GeneralRe: My vote of 5 Pin
DeJunk7-May-14 17:57
memberDeJunk7-May-14 17:57 
QuestionI like this Pin
conejo801-Sep-13 17:50
memberconejo801-Sep-13 17:50 
QuestionProblem with form as MDI container!!!.....don't work! Pin
robyzurieta6-Jun-13 2:27
memberrobyzurieta6-Jun-13 2:27 
QuestionThanks Pin
Muslim Bahdili11-Apr-13 18:54
memberMuslim Bahdili11-Apr-13 18:54 
GeneralMy vote of 5 Pin
Jack_32115-May-12 1:21
memberJack_32115-May-12 1:21 
GeneralMy vote of 5 Pin
CJ736-Mar-12 18:11
memberCJ736-Mar-12 18:11 
GeneralMy vote of 5 Pin
manoj kumar choubey19-Feb-12 23:24
membermanoj kumar choubey19-Feb-12 23:24 
GeneralMy vote of 3 Pin
Swelihle30-Aug-11 23:15
memberSwelihle30-Aug-11 23:15 
QuestionExcellent idea Pin
jlkdaslkfjd22-Aug-11 0:36
memberjlkdaslkfjd22-Aug-11 0:36 
Generalform skinning Pin
TeddyW18-Jun-11 0:02
memberTeddyW18-Jun-11 0:02 
GeneralGreat article my friend! It helped me at.. Pin
TheRomanian18-Apr-11 4:17
memberTheRomanian18-Apr-11 4:17 
Your article was of great help for my programmer brother. It helped me a lot!
I rated it excelent.
How old is the Orthodox Faith?
http://www.orthodoxphotos.com/history.shtml


If you are a Lutheran, your religion was founded by Martin Luther, an ex-monk of the Catholic Church, in the year 1517. If you belong to the Church of England, your religion was founded by King Henry VIII in the year 1534 because the Pope would not grant him a divorce with the right to re-marry. If you are a Presbyterian, your religion was founded by John Knox in Scotland in the year 1560. If you are a Congregationalist, your religion was originated by Robert Brown in Holland in 1582. If you are Protestant Episcopalian, your religion was an offshoot of the Church of England, founded by Samuel Senbury in the American colonies in the 17th century. If you are a Baptist, you owe the tenets of your religion to John Smyth, who launched it in Amsterdam in 1606. If you are of the Dutch Reformed Church, you recognize Michelis Jones as founder because he originated your religion in New York in 1628. If you are a Methodist, your religion was founded by John and Charles Wesley in England in 1774. If you are a Mormon (Latter Day Saints), Joseph Smith started your religion in Palmyra, New York, in 1829. If you worship with the Salvation Army, your sect began with William Booth in London in 1865. If you are Christian Scientist, you look to 1879 as the year in which your religion was born and to Mary Baker Eddy as its founder.

If you belong to one of the religious organizations known as "Church of the Nazarene, Pentecostal Gospel," "Holiness Church," or "Jehovah's Witnesses," your religion is one of the hundreds of new sects founded by men within the past hundred years.

If you are Roman Catholic, your church shared the same rich apostolic and doctrinal heritage as the Orthodox Church for the first thousand years of its history, since during the first millennium they were one and the same Church. Lamentably, in 1054, the Pope of Rome broke away from the other four Apostolic Patriarchates (which include Constantinople, Alexandria, Antioch and Jerusalem), by tampering with the Original Creed of the Church, and considering himself to be infallible. Thus your church is 1,000 years old.

If you are Orthodox Christian, your religion was founded in the year 33 by Jesus Christ, the Son of God. It has not changed since that time. Our church is now almost 2,000 years old. And it is for this reason, that Orthodoxy, the Church of the Apostles and the Fathers is considered the true "one Holy Catholic and Apostolic Church." This is the greatest legacy that we can pass on to the young people of the new millennium.

GeneralHelp Pin
steve02113-Apr-11 5:20
membersteve02113-Apr-11 5:20 
GeneralWhatsthishelpbutton Pin
Member 324988420-Sep-10 2:44
memberMember 324988420-Sep-10 2:44 
GeneralMy vote of 5 Pin
Freshbrew28-Aug-10 0:34
memberFreshbrew28-Aug-10 0:34 
GeneralProblem with window state at runtime Pin
usha gupta19-Jul-10 2:47
memberusha gupta19-Jul-10 2:47 
GeneralC# version and Thanks a Ton... Pin
Member 469050514-Feb-10 9:36
memberMember 469050514-Feb-10 9:36 
GeneralRe: C# version and Thanks a Ton... Pin
Ferminus Muthu7-Mar-10 22:39
memberFerminus Muthu7-Mar-10 22:39 
GeneralRe: C# version and Thanks a Ton... Pin
Priya Billava30-Mar-10 18:57
memberPriya Billava30-Mar-10 18:57 
GeneralSomething More Challenging... Pin
Joshua Eiland13-Feb-10 19:37
memberJoshua Eiland13-Feb-10 19:37 
GeneralRe: Something More Challenging... Pin
Ferminus Muthu7-Mar-10 22:38
memberFerminus Muthu7-Mar-10 22:38 
GeneralMy vote of 1 Pin
seinkraft24-Jan-10 5:32
memberseinkraft24-Jan-10 5:32 
Generalhi..... gr8 stuff Pin
Arunabh Nag22-Jul-09 12:30
memberArunabh Nag22-Jul-09 12:30 
GeneralGreat start..... Pin
DJ Matthews17-Jul-09 9:49
memberDJ Matthews17-Jul-09 9:49 
QuestionHow did you make it?? Pin
vietnam_boi_967-Jul-09 13:34
membervietnam_boi_967-Jul-09 13:34 
Generalthanks Pin
agdeniz17-May-09 20:47
memberagdeniz17-May-09 20:47 
GeneralMy vote of 1 Pin
Dave Kreskowiak30-Jan-09 10:07
mvpDave Kreskowiak30-Jan-09 10:07 
GeneralForm Stretch problem Pin
Member 369554613-Jan-09 20:01
memberMember 369554613-Jan-09 20:01 
GeneralRe: Form Stretch problem Pin
awparso25-Oct-11 11:17
memberawparso25-Oct-11 11:17 
Generalsugestion Pin
rio_p7-Nov-08 3:43
memberrio_p7-Nov-08 3:43 
GeneralRe: sugestion Pin
Armando Airo'14-Nov-08 8:11
memberArmando Airo'14-Nov-08 8:11 
GeneralRe: sugestion Pin
wolf9s28-Jul-11 0:18
memberwolf9s28-Jul-11 0:18 
GeneralFlickering Problem! Pin
farizvi17-Jul-08 20:49
memberfarizvi17-Jul-08 20:49 
GeneralBug still there! Pin
sjcardinale12-Jun-08 10:37
membersjcardinale12-Jun-08 10:37 
GeneralBug corrected Pin
Ferminus Muthu12-Jun-08 1:44
memberFerminus Muthu12-Jun-08 1:44 
GeneralRe: Bug corrected Pin
Selvin12-Jun-08 2:18
memberSelvin12-Jun-08 2:18 
GeneralRe: Bug corrected Pin
mscdex12-Jun-08 6:04
membermscdex12-Jun-08 6:04 
GeneralRe: Bug corrected Pin
wolf9s28-Jul-11 0:21
memberwolf9s28-Jul-11 0:21 
General[Message Removed] Pin
Mojtaba Vali25-May-08 0:50
memberMojtaba Vali25-May-08 0:50 
GeneralSmall bug Pin
Selvin21-May-08 4:30
memberSelvin21-May-08 4:30 
Generalcool Pin
Abhijit Jana9-May-08 23:45
memberAbhijit Jana9-May-08 23:45 
GeneralMoving the skinned form Pin
Kong Ragge6-May-08 23:58
memberKong Ragge6-May-08 23:58 

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.

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