jrjonanddad1 Posted July 15, 2009 Report Posted July 15, 2009 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 ?
lostmodz26 Posted July 16, 2009 Report Posted July 16, 2009 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.
Random1225 Posted July 16, 2009 Report Posted July 16, 2009 Step 5.) Double click on maximize and type:Me.WindowState = FormWindowState.MinimizedWhen 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
jrjonanddad1 Posted July 16, 2009 Author Report Posted July 16, 2009 okay so that will work but is that the easiest way or just the only way i thought there was another but i might be wrong also thanks for the help anyway......
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now