Results 1 to 4 of 4

Thread: Visual Basic 2010 express edition (simple question)

Hybrid View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2011
    Posts
    6

    Visual Basic 2010 express edition (simple question)

    Im up to lesson 5 on http://www.vbtutor.net/vb2010/vb2010_Lesson5.htm at the bottom were the guy makes a program that displays the hidden name. I didn't quite understand what he wrote and what he changed because the instructions weren't clear.

    What I did was make a windows form application, put a label and renamed it to "Show hidden names" and then inserted the code. His one turned out slightly different

    My code is

    Public Class Form1
    Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    Dim name1, name2, name3 As String
    name1 = "John"
    name2 = "Georges"
    name3 = "Ali"
    MsgBox(" The names are " & name1 & " , " & name2 & " and " & name3)

    End Sub
    End Class


    He mentioned something about putting a command line, idk what that is i assumed he was referring to a label but i think i am wrong because his is a white rectanngle with text and mine is just a button


    sorry im confused im only 13 ! :L

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Visual Basic 2010 express edition (simple question)

    Welcome to VBForums

    Thread moved to 'VB.Net' (VB2002 and later) forum

  3. #3
    Member
    Join Date
    Jan 2011
    Location
    Scotland
    Posts
    51

    Re: Visual Basic 2010 express edition (simple question)

    The example uses a command button just as you have described you have (not command line) and the author has changed its caption to say Display Hidden Names as seen on the image (even though the article says change it to Show Hidden Names)

  4. #4

    Thread Starter
    New Member
    Join Date
    Jun 2011
    Posts
    6

    Re: Visual Basic 2010 express edition (simple question)

    so i did it right?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width