button does nothing?

Manictrooper101

New member
Joined
Mar 10, 2010
Messages
1
Programming Experience
Beginner
Basically im new at VB, and i have a form with 10 designated slots for letter to be entered (Like the free letter spaces on hangman), above these are 10 adjacent labels with a full stop "." as the text value, now i have created a button, Q to detect whether there is a . in the first box, and if there is enter the letter Q (Letter1.text = "Q"), elseif check the same for the second box. Now my problem is when i click the button, it still does nothing and letter 1 remains "." instead of "Q". also how would i end this string of else ifs? as in what if every text box is full then do what?

Sorry for how simple this is guys but ive searched and nobody seems to have asked this in a google-able format.
 
Hi,

This is my first ever post so i hope i do well.

I think you mean

If label1.text = "." then
textbox2.text = "Q"
elseif label2.text = "." then
textbox3.text = "Q"
end if

But I do think the other chap is right, really need to see the code first to fully understand the question

I hope this helps
 
Last edited:

Latest posts

Back
Top