
vb6 自定义图片按钮
Have you ever thought of changing the look of your Buttons in Visual
Basic? Then you are at right place, I’ll be showing you how you can
make your own custom button controls in visual basic.
Basic? Then you are at right place, I’ll be showing you how you can
make your own custom button controls in visual basic.
Note: If you know how to design buttons in
photoshop or whatever you use then
you can specifically design your own buttons and if you don’t know then not a
big deal you can download our custom buttons over here: Download Custom Button Project Resource Files.
you can specifically design your own buttons and if you don’t know then not a
big deal you can download our custom buttons over here: Download Custom Button Project Resource Files.
Also Read: Lab Login System Mini Project in VB.Net
How to Create Custom Button in VB.Net
- Let’s get started by creating a new windows form application in visual basic.
Go to solution explorer – Under your Project select My Project – Resources.
- Select Add Resource – Add Existing File, and browse the downloaded images.
Now go to Project in MenuBar and select Add Class and name you class like TheCrazyProgrammerButton, BradleyButton, MissionButton or something like that.
- Remove all the existing code in the class and paste the below code.
- Now run your Projects once close it. After that you can see a new control named “YourClassName” in your ToolBox.
- Drag it on you windows form and you are ready to use your custom button.

翻译自: https://www.thecrazyprogrammer.com/2014/11/how-to-create-custom-button-in-vbnet.html
vb6 自定义图片按钮