A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

[Beginners Tutorial]Customizing the close button in Visual Basic 2008

1.2k views · started by Michael ·
#1
[Beginners Tutorial]Customizing the close button in Visual Basic 2008
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:
Me.Close()

Now you are going to double click the Minimize Button as well. But this time type:
WindowState = FormWindowState.Minimized


And you are done. :)
Just build the program and run it and it should work.

All Credit goes to Me :p
#2
Fuck wrote:
All Credit goes to LoCoElRockstar/Fuck/Michael/Me


It took all 4 of you to figure this out. Wow.
#3
Chad wrote:
It took all 4 of you to figure this out. Wow.


No, they are all me.
#4
Chad wrote:
It took all 4 of you to figure this out. Wow.


lol'd :confused::confused::confused: