ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

Visual Basic Tutorial | How to Add Custom Skins on Forms in Visual Basic

Updated on May 2, 2014

Overview

Form skins are used to make the program more presentable by its design, note that upon using skins on forms some of the codes might not work, based from my programming experience when you use form skins some of its controls do not accept conversions like, converting lowercase into proper and upper cases it is because skins are programmed not by drag and drop option but coding.

Using skins on a program you are making is very useful as a beginner you can turn yourself into intermediate programmer once the people saw that you made something that some other programmers cannot.

There are lots of form skins and design uploaded and shared through the internet but only some of them are working properly. One example of the program I used in adding skins into my project is the "Visual Basic Theme Archive" this archive contains 45 different and high quality designs of forms and controls and aside from that it is free to download. Check out the video I uploaded about this Visual Basic Theme Archive.

Corsair Vengeance 16GB for Better Performance in Programming

Corsair Vengeance  16GB (2x8GB)  DDR3 1600 MHz (PC3 12800) Desktop Memory 1.5V
Corsair Vengeance 16GB (2x8GB) DDR3 1600 MHz (PC3 12800) Desktop Memory 1.5V

Corsair Vengeance 16GB has a stable power of supporting multi tasking specially in programming, using visual studio you need a horse powered ram to make your debugging and running the program smoothly. This memory stick is powerful enough to maintain and handle visual basic crash problems and PC free during the debugging of the program.

 

Visual Basic Theme Archive Preview

This is one of many themes that you can use with the visual basic theme archive.
This is one of many themes that you can use with the visual basic theme archive.

Visual Basic Theme Archive Features

Because programmers like me likes to add black skins on our projects, programmers around the world made this theme more on solid black colors.

  • Fluidity - Every skins on this theme archive is fluid upon running the application like the default design of form and controls.
  • Texture - More of the designs compiled on this archive was amazing in terms of texture, you can find alternate dark gray and solid black stripes and glowing borders.
  • Virus Free - Based from my 5 years of programming experience, upon using this cool skins I have never met a malicious code embedded to this skins even my anti-virus scanner never detect malware and trojans injected on this themes as far as I know.
  • Easy to use - Once you have selected the desired skin that you want to use to your program, you just need to copy and paste its code and debug it so that visual basic can detect that you have added new controls.

So, How Do I Add Theme / Skin into my Project in Visual Basic?

Okay, let's start with the tutorial, P.S You need to read carefully and follow the step-by-step instructions to avoid errors in your project. I highly advice that you must put the skin or theme first before do coding of your program. "Make this as FIRST STEP"

Instructions:

  1. Open Visual Basic (Note, this skins only work on VB2008 or Higher)
  2. Create New Project
  3. Open Visual Basic Theme Archive
  4. From the archive browse and select from 45 different designs
  5. Once you have selected the skin you want to use
  6. Click the "View Code" Button (wait till the animation is done)
  7. Now, Click on the source code to copy it to clipboard (Just Click it, no need to right click and copy)
  8. Once the code has been copied to clipboard
  9. Go back to visual basic on your new project
  10. Add new class (Class1.vb) 'you can rename it or just leave it to its default'
  11. After the new class.vb has been added
  12. Highlight all its code and Paste the copied code from the theme archive
  13. Once its pasted, Debug your project and when it says "Debug Successful"
  14. Open the Form1 design and on the toolbox you will see a newly added controls, that includes the main skin and some of its controls like button and textbox.

Once again, follow carefully the steps I provided to avoid program error or even vb crash.

EVGA GeForce 610 2GB for Max Power in Visual Studio

EVGA GeForce GT 610 2048MB DDR3, DVI, Mini-HDMI, Graphics Card (02G-P3-2617-KR)
EVGA GeForce GT 610 2048MB DDR3, DVI, Mini-HDMI, Graphics Card (02G-P3-2617-KR)

For max power upon programming is visual studio, you will need a very cheap yet powerful graphics card, and EVGA GeForce 610 2GB can do that for you. I highly recommend you to use this product to avoid visual studio restart issue and freeze issue during debug mode.

 
Once the skin has been recognized by visual basic you can see something like this.
Once the skin has been recognized by visual basic you can see something like this. | Source

For this tutorial I also recorded a video tutorial on How to add Form Theme or Skin in Visual Basic.

I Made this to make it easy for you to understand the steps I provided above.

Watch the video tutorial below and make sure to watch it in HD for a clear and better sighting of what I am doing.

Once again, I do not know if this skins can work on vb6, as far as I know once vb2008 has been launched they also added new line of codes or more likely they evolve some codes to make it more easy to use and to understand.

Programming is not that hard after all, once you get into it.

Comments

    0 of 8192 characters used
    Post Comment

    No comments yet.

    Click to Rate This Article