Jump to content

  •  

  • iBotModz CBox


    Photo

    Brand New To Visual Basic 2008? Part 2


    • Please log in to reply
    6 replies to this topic

    #1 Halo117

    Halo117

      Private

    • Members+

    • 42 posts
    • Joined: 07-August 08
    • Location:Under A Rock

    Posted 18 September 2008 - 05:20 PM

    Here is the second part to Brand New To Visual Basic 2008?!

    Well this is going to be a more detailed tutorial then last time!

    What we are going to make is a Button so when clicked the current form window will Maximize, Minimize Or go back to Normal!

    So If we wanted to make a Maximize button we would have to start of with me so it knows that your talking about the current form opened...

    So We Put:

    Me.

    After we type Me. We will add:

    WindowState =

    Because it needs to know that we are talking about the WindowState becasue the Command Me. Could mean lot's of things!

    We also added the = Sign so it knows that that is what we want it to be\look when the command is finished!

    =

    After that we add

    FormWindowState.Minimized

    And that is all for a Maximize button:

    Here is what it should look like in the end:

    Me.WindowState = FormWindowState.Minimized

    Questions + Answers:

    Q: What if we wanted a Normal window state or a Maximized?

    A: Well all you would do is Replace Minimized And Put Maximized Or Normal

    Tip:

    You don't have to code it all A Window should show up saying a whole bunch of codes just select the one your looking for trust me it will save you alot of time and will be way more simple! The window should have 2 tabs at the Bottom saying "Common" and "All" If that is there you should have the right window!

    Part 3 Comming Soon:

    Edited by Halo117, 18 September 2008 - 05:27 PM.


    #2 Hergs18

    Hergs18

      Recruit

    • Members+

    • 2 posts
    • Joined: 17-September 08

    Posted 18 September 2008 - 07:34 PM

    Thanks Alot! cant wait for Part 3!!!!!! :good:

    #3 Ampix

    Ampix

      Apprentice Grade 2

    • Members+

    • 16 posts
    • Joined: 15-June 08

    Posted 22 November 2008 - 09:58 PM

    nice halo bro! bring on part 3 lol

    #4 PURE xCHA0S

    PURE xCHA0S

      Recruit

    • Members+

    • 4 posts
    • Joined: 26-July 09

    Posted 27 July 2009 - 10:43 AM

    How do we close it?

    I got it myself

    Me.Close

    Edited by PURE xCHA0S, 27 July 2009 - 10:45 AM.


    #5 Lockon

    Lockon

      "I never asked for this"

    • VIP

    • 1,896 posts
    • Joined: 17-June 08
    • Gender:Male
    • Location:N.Ireland

    Posted 27 July 2009 - 03:27 PM

    Close()
    is easy

    #6 PURE xCHA0S

    PURE xCHA0S

      Recruit

    • Members+

    • 4 posts
    • Joined: 26-July 09

    Posted 28 July 2009 - 07:41 AM

    How do we close it?

    I got it myself

    Me.Close



    Close()
    is easy


    Do you read before you post? I edited it and you didn't read it I mean its not like I edited it today I edited it right after I posted.

    #7 Lockon

    Lockon

      "I never asked for this"

    • VIP

    • 1,896 posts
    • Joined: 17-June 08
    • Gender:Male
    • Location:N.Ireland

    Posted 29 July 2009 - 10:13 AM

    I never learned to read in my life