sQuo Posted June 29, 2013 Share Posted June 29, 2013 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 Sign In or Sign Up Download here: This is the hidden content, please Sign In or Sign Up So i removed the Background and saved each Button seperate as .png! This is the hidden content, please Sign In or Sign Up 2. Open VB and create a new ClassLibrary Application! This is the hidden content, please Sign In or Sign Up 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 Sign In or Sign Up This is the hidden content, please Sign In or Sign Up 3. Now navigate to "Resources" and add your 3 Pictures ! This is the hidden content, please Sign In or Sign Up 4. Now we need to write the Code! This is the hidden content, please Sign In or Sign Up 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 Sign In or Sign Up 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 Sign In or Sign Up by ~The Expert This is the hidden content, please Sign In or Sign Up Link to comment Share on other sites More sharing options...
Recommended Posts