Jump to content

cbox


Recommended Posts

Posted

hey i am programming in Visual studio visual basic express edition thing (srry 4 jumbled up title i am not on my pc i am on my mothers lol)

can i change the little X and minimize and maximize buttons like uh skin them to be anything else cuz i was making a pretty cool program (personal use only lol) and i wanted it to look kinda cool so it doesnt look all crappy and stuff with the windows look i wanted it to be a custom top and buttons and everything at the top...

so what i am trying to say is there anyway i can skin that to be something else ?

Posted

Yes you can.

 

Step 1.) Make sure you have a collection of images for the top of the form. First start out my selecting your form and in the properties window and change the formborderstyle to None.

 

Step 2.) Add Picture Boxes and put the minimize/maximize/close pictures into them and put them at the top of the form where your close/minimize/maximize boxes would normally be.

 

Step 3.) Double click on the close box and type:

 

Me.Close()

 

Step 4.) Double click on the minimize and type:

 

Me.WindowState = FormWindowState.Minimized

 

Step 5.) Double click on maximize and type:

 

Me.WindowState = FormWindowState.Minimized

 

When you maximize it, the picture boxes will be out of place, so unless you automatically adjust the position with some other code they won't work and if I were you I just wouldn't even add a maximize.

 

If this helped, please +REP me.

Posted

Step 5.) Double click on maximize and type:

Me.WindowState = FormWindowState.Minimized

When you maximize it, the picture boxes will be out of place, so unless you automatically adjust the position with some other code they won't work and if I were you I just wouldn't even add a maximize.If this helped, please +REP me.

Shouldn't

Me.WindowState = FormWindowState.Minimized

be

Me.WindowState = FormWindowState.Maximized

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...