Hi all, I just finish my little project and it runs fine...but I still want to add some thing more in it..but still don't fingure out the eoor..SO some one plz help..
this is my project..about slot machine
I have 3 label:
lblWheel1
lblWheel2
lblWheel3
1 button:
btnPlay
1 textbox
txtInfo
and here my code
module1.vb
Module Module1
Public wheel1 As Integer
Public wheel2 As Integer
Public wheel3 As Integer
Public Temp1 As Integer
Public Temp2 As Integer
Public Temp3 As Integer
If Temp1 = Temp2 = Temp3 Then
MsgBox("congratulation,You r Win")
Else
txtInfo.Text = "Sorry, Please try again"
End If
End Sub
I don't know, why when Im win, but the message Box doesn't appear, and I just only see" sorry, please try a gain message" SOme one know how to fix, Plz help me..Thank You
yeah, this one the msgbox will appear, but It still have error that It appear every time I click on the button "Play" even I don't win.lol..So Plz help me to fix it again..
and more thing I'd like to mention : You don't need "wheel1" and "wheel2" and "wheel1" variables . You can use the values directly (which is faster way ) like this :