|
-
Jul 18th, 2000, 01:17 PM
#1
Thread Starter
New Member
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
-
Jul 18th, 2000, 01:22 PM
#2
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|