Jump to content

  •  

  • iBotModz CBox


    Photo

    Brand New To Visual Basic 2008?


    • Please log in to reply
    7 replies to this topic

    #1 Halo117

    Halo117

      Private

    • Members+

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

    Posted 16 September 2008 - 11:11 PM

    Here is a tutorial to help you guy to learn VB2008 before moving on to C# And C++!

    Well First I will explain all of the code listed!

    If - If a command happens.

    If Textbox1.Text = "Hello" Then

    Then - If that happpens then do this command! Heres an Example!

    If Textbox1.Text = "Hello" Then
    MsgBox("What do you want to be in your messagebox?")

    That is an Example of - Then

    Now after you put Then.
    And your code. When your finished the If Command put End If so it knows when the If Command should stop!

    So in the end it should look like

    If Textbox1.Text = "Hello"

    MsgBox("What do you want to be in your messagebox?")

    End If

    And you would put that code in your button or something that you click!...

    If you just want a Message Box to show you would just go...

    MsgBox("What do you want in your Messagebox? Enter that here!")

    If you wanted a more advanced Messagebox you would go! (I Would reccomend learning a bit on the Easy Message box before trying this one!)

    MessageBox.Show("What Text do you want to appear in the messagebox? Enter that here!","What Text do you want to appear in your Title Bar? Enter That Here!")

    Lets say if I wanted to make a button so when clicked the form would Close\Exit there are a few ways of doing this!

    You Could Go:
    Me.Close() 
    Or
    Close()

    There are a few other but im not goin to list them...

    What does this mean?:

    Me - The current application opened!

    If - If a command happens.

    Then - If something happens then do this command.

    End If - To end your If.

    How about another example:

    Lets say I wanted to make a Button so when clicked the Text in my Textbox1 That I have placed down will change to what I want!

    First you would want to type in Textbox1.Text so It know that we are talking aboot the text in my Textbox.

    So we would go like

    Textbox1.Text

    Then we would want to put a = Sign so it knows that we want the text to = Whatever we put in so we would go like

    Textbox1.Text =

    Then we would add "" So that is saying that is the text I want to appear in my Textbox1

    So It would look like:

    Textbox1.Text = "Whatever Text You Want To Appear in your Textbox1!"

    Thats All for that!

    Edited by Halo117, 17 September 2008 - 09:57 PM.


    #2 Dark Slipstream

    Dark Slipstream

      Blue Shadowz Owner

    • Members+

    • 2,829 posts
    • Joined: 19-April 08
    • Gender:Male
    • Location:Canada, ON

    Posted 17 September 2008 - 10:45 AM

    it's kind of all over the place.

    you should make it more visual basic like.. like put the code in vb, take a picture, and crop the code, and post the picture.. you have it all over the place.

    Thought - 10/10
    Appearance - 3/10
    Creativity - 7/10
    Idea/Conception - 8/10

    Overall nice idea, more effort into appearance could help.

    #3 Halo117

    Halo117

      Private

    • Members+

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

    Posted 17 September 2008 - 09:35 PM

    There we go I fixed the appearance alot you want to Re-Rate?
    (There will be a Part 2!)

    Edited by Halo117, 17 September 2008 - 09:53 PM.


    #4 Dark Slipstream

    Dark Slipstream

      Blue Shadowz Owner

    • Members+

    • 2,829 posts
    • Joined: 19-April 08
    • Gender:Male
    • Location:Canada, ON

    Posted 18 September 2008 - 09:34 AM

    thats better. i give your appearance a 7 now. its alot more spaced / easier to read.

    #5 Hergs18

    Hergs18

      Recruit

    • Members+

    • 2 posts
    • Joined: 17-September 08

    Posted 18 September 2008 - 04:02 PM

    B) THANKS ALOT that helps soo much :p :yahoo:

    #6 Halo117

    Halo117

      Private

    • Members+

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

    Posted 18 September 2008 - 04:53 PM

    B) THANKS ALOT that helps soo much :p :yahoo:

    Thanks More Will Be Coming! :)

    #7 Demon

    Demon

      Corporal Grade 1

    • Members+

    • 114 posts
    • Joined: 07-October 07
    • Location:New Zealand

    Posted 27 September 2008 - 08:09 AM

    Hey i used to make begginers VB tuts lol and im my pictures i had anime backgrounds on my forms, i wonder what happend to those

    #8 Mcmodder♥

    Mcmodder♥

      I have no friends.

    • Banned

    • 622 posts
    • Joined: 03-August 08
    • Gender:Male
    • Location:???????

    Posted 06 October 2008 - 12:59 PM

    i think u should do C# as its a lot better to do :) but vb is good as will have have VS so i can do it all YAY LOLOL :)