So, What the error of your program?
I don't get what exactly you want to ask?
Jx_Man
Senior Poster
3,538 posts since Nov 2007
Reputation Points: 1,488
Solved Threads: 524
Skill Endorsements: 64
As a starter, you might consider separating your logic by testing the inputs first and waiting to do your calculations and shape-color-changing for later in the routine.
Simple test:
If Not (UCase(Text1.Text) Like "[QDN]") Then
MsgBox "INVALID COIN!PLEASE INSERT COIN in Q,D and N ONLY!", vbCritical, "INSERT COIN"
Exit Sub
End If
This will test for a valid value and hoist a message box if it is invalid then get out of the event routine. Simplifies your logic and you don't have to be continually testing.
If it's not too much trouble, could you explain what the Label4.Caption is supposed to be showing? I couldn't really figure out what you're trying to accomplish there. Also, what is the significance of the different Shape controls changing color?
BitBlt
Practically a Posting Shark
894 posts since Feb 2011
Reputation Points: 482
Solved Threads: 148
Skill Endorsements: 14