Results 1 to 2 of 2

Thread: Label text and Text box.. help..

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2006
    Posts
    99

    Exclamation Label text and Text box.. help..

    hii can annyone help me im new and amateur...

    i need 2 make soemthing like wen an user enters his username on the text box.. i want after loging in

    into an other panel were i have a special label 2 be writing welcom "users name"


    can annyone help me on this..?

  2. #2
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: Label text and Text box.. help..

    Quote Originally Posted by msn2
    hii can annyone help me im new and amateur...

    i need 2 make soemthing like wen an user enters his username on the text box.. i want after loging in

    into an other panel were i have a special label 2 be writing welcom "users name"


    can annyone help me on this..?
    Hi,

    You could try this;

    VB Code:
    1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    2.         Panel1.Visible = True
    3.         Label1.Text = TextBox1.Text
    4.     End Sub
    5.  
    6.     Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    7.         Label1.Text = ("Welkom to " & TextBox1.Text)
    8.         Panel2.Visible = True
    9.         Panel1.Visible = False
    10.     End Sub

    Hope it helps,

    sparrow1
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

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