#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Posts
    1
    Rep Power
    0

    Moving text box content to variable, then to labe's text property using button


    Hello all,

    Having trouble in visual basic 10 homework for class.

    The question :

    Create a project with a text box, button, and label control. When the user clicks the button, move the contents of the text box to a variable, and then move the contents of the variable to the label's Text property. Apparently, a A String variable will do the trick, but I have been having trouble writing the code.

    Any tips or help is much appreciated.
  2. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,436
    Rep Power
    4539
    Review the documentation for VB and the controls you're using, you may even get your answer from the many examples provided in help.
    ======
    Doug G
    ======
    Bartender to Rene Descartes "have another beer?" Descartes: "I think not" and he vanished.
    --Alfred Bester

IMN logo majestic logo threadwatch logo seochat tools logo