Jump to content
YOUR-AD-HERE
HOSTING
TOOLS
992Proxy

Locked GUI-Buttons for VB, very easy Tutorial


sQuo

Recommended Posts

GUI-Buttons for VB, very easy Tutorial


What you need:

 

-a brain

-Photoshop, or any other Graphic Editing Tool

-Visual Studio

-.Net Framework X.

 

So let us start:

1. Open Photoshop or any other Tool and create 3 Buttons, one normal, one when the Mouse is on and one when it is clicked. I won´t make a Tutorial on how to create this, either you can image or you can Google Photoshop GUI!

 

For this Tutorial i will use this:

 

This is the hidden content, please

 

Download here:

This is the hidden content, please

 

So i removed the Background and saved each Button seperate as .png!

 

This is the hidden content, please

 

2. Open VB and create a new ClassLibrary Application!

 

This is the hidden content, please

 

 

So you will have one Class. Double Click "My Project" (on the right Side), and navigate to "References", click on the Button, called "Add". There you can find a List of References! Find "System.Drawing" and "System.Windows.Forms", check both and click OK!

 

This is the hidden content, please

 

This is the hidden content, please

 

3. Now navigate to "Resources" and add your 3 Pictures !

 

This is the hidden content, please

 

4. Now we need to write the Code!

 

This is the hidden content, please

 

EDIT: The Code is not C & P, i wrote this Code and the Tutorial!

I don´t need to explain the Code, i think it is easy to understand.

 

5. Now build and you will get a .dll File!

 

6. Create a new Project (where you use the GUI)

 

7. Go to your Toolbox and right Click it!

- You can find "Add Toolbox Elements", select it and you will get this:

 

This is the hidden content, please

 

Navigate on the Tab-bar on ".Net Framework Components"

Click on "Add" and select your .dll File.

 

8. No you will have a extra Option in your Toolbox, just Drag and Drop it on your new Form.

 

9. Now you can write the Code behind the Button_Click Event.

10. You have finished!

 

This is the hidden content, please

 

by ~The Expert

This is the hidden content, please

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.