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

    Join Date
    Oct 2013
    Rep Power

    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
    Rep Power
    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
    I've never been able to appreciate the sublime arrogance of folks who feel they were put on earth just to save other folks from themselves .." - Donald Hamilton

IMN logo majestic logo threadwatch logo seochat tools logo