Okay, I am going to show LG how to make a custom close and Minimizing button.
To start you are going to make a new project. Once you have made a new project go to the Properties bar. Go to Start Position, and make it CenterScreen.
Now that you have done that you are going to find FormBorderStyle in the Properties bar. And make it None.
Now you have to make/find a image of a line (Minimize) and a X (Close) I made a couple on Photoshop. Just make sure you save it as a PNG file. So if you have a colored design in the background you can just set it to transparent.
Now go to the ToolBox and select Picture box. You are going to make 2 in the Top-Right corner right next to each other.
Select one of your PictureBoxes, and go to the Properties bar and select Image. Click the 3 dots to browse. Then go to Import and select the image you want to use for the close/minimize button. Then click okay.
Do the same for Minimize button.
Now you are going to double click the Close button and type:
Now you are going to double click the Minimize Button as well. But this time type:Code:Me.Close()
And you are done.Code:WindowState = FormWindowState.Minimized
Just build the program and run it and it should work.
All Credit goes to Me :p
Results 1 to 4 of 4
- 21 Feb. 2010 07:20pm #1
[Beginners Tutorial]Customizing the close button in Visual Basic 2008
Last edited by Michael; 22 May. 2010 at 07:55pm.
- 21 Feb. 2010 08:59pm #2
- 21 Feb. 2010 09:36pm #3
- 27 Jul. 2010 02:25am #4