Results 1 to 2 of 2

Thread: Newbie

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    Wales
    Posts
    12

    Exclamation

    I am new using visual basic so please help me with this question.

    I have made a program with 26 command buttons one for every letter of the alphabet. I also have a label. When i press the command button i would like the letter on the command button to appear in the label. I can do this. But i can only get one letter in the label at a time, i would like to spell words in the label using the command buttons but the label only has the last letter i have pressed in it.
    Please could you help.

    Thanks

    Later

    M Baynham

  2. #2
    Lively Member
    Join Date
    May 2000
    Posts
    84
    use this in the command button to add the letter

    Code:
    Label1 = Label1 & letter
    This simple attaches the letter you want to the end of the string in the label.

    BTW to prevent a lot of duplication with the code make sure your command buttons are all in the same control array then use the index value to determine which letter to add to the label.

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