Jump to content

  •  

  • iBotModz CBox


    Photo

    can i do this...in VB


    • Please log in to reply
    3 replies to this topic

    #1 jrjonanddad1

    jrjonanddad1

      Private

    • Members+

    • 36 posts
    • Joined: 17-June 08
    • Gender:Male
    • Location:inside the very depths of xboxlive

    Posted 15 July 2009 - 04:22 PM

    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 ?

    #2 lostmodz26

    lostmodz26

      I am lostmodz26.

    • VIP

    • 1,153 posts
    • Joined: 12-March 09
    • Gender:Male
    • Location:Northern Louisiana

    Posted 15 July 2009 - 08:26 PM

    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.

    #3 Random1225

    Random1225

      Gunnery Sergeant Grade 2

    • VIP

    • 986 posts
    • Joined: 03-May 08
    • Gender:Male
    • Location:The Holy Empire of Britannia

    Posted 15 July 2009 - 09:05 PM

    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


    #4 jrjonanddad1

    jrjonanddad1

      Private

    • Members+

    • 36 posts
    • Joined: 17-June 08
    • Gender:Male
    • Location:inside the very depths of xboxlive

    Posted 16 July 2009 - 12:36 AM

    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......