I made mine, but when i finished making it, it doesnt work at all, i followed everything but it keeps on saying "Conversion from string "" to type 'Boolean' is not valid." after I tryed playing it (it worked perviously before adding the 'private sub win()' and also thanks for the tutorial it helped alot! but do you think you can help me with this problem?? thanks!
I'm trying to make draws show text I tried to use this but it Doesn't work. I also tried putting button(#).text after each or statement but no
Private Sub Draw() If Button1.Text = "X" Or "O" And Button2.Text = "X" Or "O" And Button3.Text = "X" Or "O" And Button4.Text = "X" Or "O" And Button5.Text = "X" Or "O" And Button6.Text = "X" Or "O" And Button7.Text = "X" Or "O" And Button8.Text = "X" Or "O" And Button9.Text = "X" Or "O" Then MsgBox("You guys got a draw") End If
@reblogo Go to part 1 video. And watch between 3:00 to they end. U will see Part 2 Button codes! So thats why. But it was easiest to call this video part 2 , then u would know which video right?
im using VB 2010 and when i put LblXScore.Text += 1 or (lable6.Text +=1) it get an error telling me "Conversion from string "" to type 'Double' is not valid." help plz ..... i might find out whats wrong b4 u get back to me so if i dont say thanks and u help "thx"
sorry to say but its way better to change label6.txt (for example) in lblXwin.txt thats way better , than you dont have to look the whole time what label it is.
Actually I had the exact same problem, and I had put 0 instead of O. But my problem was that I had put "Wins:" and "0" in the same label therefore causing an error. So try making a separate label for it then trying it again. It worked fine for me.
I have finished but when I pressed play appears the game and I press on one of the button and it tells me dad I have won and I do not see any error HELP PLEASE
When you the button is clicked on the label changes telling the next player it's their turn.
Example:
Private Sub If turn = 1 Then B3.Text = "O" Label6.Text = "X" 'After it's clicked the text above the grid will say O telling the next player it's their turn.
Put your label numbers from the 0 ptz and then make a reset score buttton put that in there and your reset numbers and your good enjoy a fast reset button.
@2aa3aaa Make a button rename it Reset Score and then Private Sub Button11_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button11.Click Label7.Text = "0" Label7.Enabled = True Label8.Text = "0" Label8.Enabled = True End Sub
End Classbasicly you need to do it for both labels copy past em in the button and what ever your 0 labels are named change the 77 to whatever your top label is and then do it again for the other i hope this helps
lol those games use C# I think o.0 sometimes the companies make their own program like "Warcraft 3 world creator" using c#, then use it to make a game.
i luv this thank you so much it worked :P oh and i rly love the score monitoring that if you press reset the score stays and counts up unlike fake ones ive seen gud tut's 5/5 sub'd
nid to type "Call disablebuttons()" but if it still doesn't work, try following the code again lols XD Something must be missing from your disablebuttons sub.
yeah, but sometimes, people don't notice that they lost, because they didnt spot the line yet lol XD so, the button press is just there so that they have some time to spot their mistake lol.
2:19
jacky8399 3 days ago
BGM is annoying
jacky8399 3 days ago
awesomeeeeeeeeeeeeee... thankssssssssssssssssssssssssssss
wpunkzz 1 month ago
This has been flagged as spam show
It is here! My new video! Check it out! If you haven't seen my first video please check it out! Thanks Thanks and.. Thanks!
hackster2011 3 months ago
i typed visual basic lol to the search and this appers lmao xd
TommyDDoom 5 months ago
Multiplayer Tic Tac Toe
watch?v=kCFnVrf7AkA
Ahmad45123 6 months ago
Merci beaucoup cette vidéo fonctionne parfaitement !!!
john129ful 6 months ago
Great!!!
MSNWindows7 7 months ago
This has been flagged as spam show
i put the command you used for the score to show and my score is of "0="
"Label3.Text += 1"
but it gives a error
Conversion from string "0=" to type 'Double' is not valid.
saadasad 8 months ago
This has been flagged as spam show
i put the command you used for the score to show and my score is of "0="
"Label3.Text += 1"
but it gives a error
Conversion from string "0=" to type 'Double' is not valid.
saadasad 8 months ago
This has been flagged as spam show
i put the command you used for the score to show and my score is of "0="
"Label3.Text += 1"
but it gives a error
Conversion from string "0=" to type 'Double' is not valid.
saadasad 8 months ago
This has been flagged as spam show
i put the command you used for the score to show and my score is of "0="
"Label3.Text += 1"
but it gives a error
Conversion from string "0=" to type 'Double' is not valid.
saadasad 8 months ago
i put the command you used for the score to show and my score is of "0="
"Label3.Text += 1"
but it gives a error
Conversion from string "0=" to type 'Double' is not valid.
saadasad 8 months ago
how many lines code is this?
AashiG123 9 months ago
I made mine, but when i finished making it, it doesnt work at all, i followed everything but it keeps on saying "Conversion from string "" to type 'Boolean' is not valid." after I tryed playing it (it worked perviously before adding the 'private sub win()' and also thanks for the tutorial it helped alot! but do you think you can help me with this problem?? thanks!
Mikhanator 9 months ago
@Mikhanator dont worry, i fixed it but thanks again for the nice tut's!
Mikhanator 9 months ago
nice vid. thanks a ton for posting this and the 2nd part!!
sulack78 10 months ago
This has been flagged as spam show
thanx bro, very helpful
Qandahariprinze 10 months ago
thatnx bro, very helpful
Qandahariprinze 10 months ago
I made a code!! And it works to draw!!! XD
ed6360 10 months ago
If the game get a Draw? I have been thinking about it,.But indk how make a code for it.
ed6360 10 months ago
HELP! I did the whole tutorial but when i play the game it allows o to go first then every single time after x goes. what was the error?
TrueShall 1 year ago
@TrueShall Nevermind found my mistake :) i forgot to put: turn = 1
TrueShall 1 year ago
@TrueShall I have all that, and i think the codes are correct...help plz
LEbr0s1234 9 months ago
Nice, thanks man. Now I want to change the names, x and o, to players names from the textbox.
pivitman101 1 year ago
EVERYTHING works except its not counting for the " O 's " . I watched the video three times and mine looks just like yours.
Red96TA 1 year ago
problem some how you gotta end the first win code or the Else feature thinks the rest is part of its own script...
Christian4802 1 year ago
nice vid man thanks
crazyasamexican 1 year ago
took for ever but it works!!!!
Owntrakill 1 year ago
nice bro thx
Oregoonian 1 year ago
Very Well It's a perfect VB08 Video I like it!!! The Game works perfectly :D
alixandra97 1 year ago
guys ive got lots of errors HALP...
Christian4802 1 year ago
i could only find 4 possible... ;/\
Christian4802 1 year ago
If you could help with my previous post that would be much appreciated
Rhiga 1 year ago
I'm trying to make draws show text I tried to use this but it Doesn't work. I also tried putting button(#).text after each or statement but no
Private Sub Draw() If Button1.Text = "X" Or "O" And Button2.Text = "X" Or "O" And Button3.Text = "X" Or "O" And Button4.Text = "X" Or "O" And Button5.Text = "X" Or "O" And Button6.Text = "X" Or "O" And Button7.Text = "X" Or "O" And Button8.Text = "X" Or "O" And Button9.Text = "X" Or "O" Then MsgBox("You guys got a draw") End If
Rhiga 1 year ago
Hey i was wondering if u said anything about there being no winners or maybe i just missed it
Like i tried to get it to say there were no winners at the end but i couldnt figure it out
Anyways great tutorial! my friends are gonna be jealous in vb on monday
Liked and subbed :)
1MSJGAELS 1 year ago
The title says 'Part 2' but the vid says 'Part 3' O.o ???
reblogo 1 year ago
@reblogo Go to part 1 video. And watch between 3:00 to they end. U will see Part 2 Button codes! So thats why. But it was easiest to call this video part 2 , then u would know which video right?
CsZackiCs 9 months ago
How do you keep the score of tie games?
ginahill2007 1 year ago
how do you make a score keeper for the ties?
ginahill2007 1 year ago
This has been flagged as spam show
What are the codes of 2:24 i can't follow de codes please can somebody place the codes of 2:24 here in a message? thanks:P!
paulbeer1997 1 year ago
This has been flagged as spam show
What are the codes of 2:24 i can't follow de codes please can somebody place the codes of 2:24 here in a message? thanks:P!
paulbeer1997 1 year ago
What if the game ends in a tie?
Microsoftultimatefan 1 year ago
yea nvm i gust didnt have anything this the lable i was trying to put + 1 to so it was finding nothing :D haha
OMFGLAZERZPWNAGEZ 1 year ago
yea nvm i gust didnt have anything this the lable i was trying to put + 1 to so i was finding nothing :D haha
OMFGLAZERZPWNAGEZ 1 year ago
im using VB 2010 and when i put LblXScore.Text += 1 or (lable6.Text +=1) it get an error telling me "Conversion from string "" to type 'Double' is not valid." help plz ..... i might find out whats wrong b4 u get back to me so if i dont say thanks and u help "thx"
OMFGLAZERZPWNAGEZ 1 year ago
hello
good tutorial friend
thanks for share...... =D
carloshdz3142 1 year ago
Works perfect.....Thanks this tutorial was great!!!!!! I you have any more simple games like this I would love to see a video for it. thx again
lovrboy420 1 year ago
Works perfect.....Thanks this tutorial was great!!!!!! I you have any more simple games like this I would love to see a video for it. thx again
lovrboy420 1 year ago
no!!!
eso tan rapido quien lo entiende pues!!!
estaba quedando bien pero lo daño con esa velocidad estaba de afan o que
-no!!!
so fast that one who understands it!
was running well but the damage that speed was of eagerness or
ThePeto22 1 year ago
no!!!
eso tan rapido quien lo entiende pues!!!
estaba quedando bien pero lo daño con esa velocidad estaba de afan o que
-no!
so fast that one who understands it!
was running well but the damage that speed was of eagerness or
Escuchar
Leer fonéticamente
Diccionario - Ver diccionario detallado
ThePeto22 1 year ago
Thx that you have done this greate video it helpt me alot but do you do how to do so it its player vs computer??
ttpa1 1 year ago
my game doesn't make scores and doesn't say x or o wins can you please tell me the code for this and were to put thx for the tutorial :D
heshamaz09 1 year ago
What are the codes for winning?
i mean what are every possible ways that x can win?
can you pleas send it to me?
or drop it here?
(sorry about my english.)
james755100 1 year ago
Thanks a lot :-)
ysharbi 1 year ago
sorry to say but its way better to change label6.txt (for example) in lblXwin.txt thats way better , than you dont have to look the whole time what label it is.
addictedtutorials 1 year ago
woot this is sweet
:D
but how do i make an AI? to play vs a computer
Smataba 1 year ago
Very nice job! Thanks for posting!
Hurtcules 1 year ago
Where is the description?
midohero3 1 year ago
Thanks for the tutorial man, I wrote mine in C#, which wasn't hard at all. Have subscribed and am going to check out some more of your vids now.
deathglare00 2 years ago
Thank you it worked!
eestlane516 2 years ago
omg my computer lagg. sorry
guitarplayer14pro 2 years ago
that
ShadowMario90 happend also for me :( PLZ HELP ME AND
ShadowMario90 :D
guitarplayer14pro 2 years ago
the same for me!! PLz HELP !!!!!:D and will it work when i fixed that
ShadowMario90 say? :D
guitarplayer14pro 2 years ago
It keeps saying that "ElseIf" has to be followed by another "ElseIf" or "If" Please Help!!!!!
ShadowMario90 2 years ago 2
i am soooooooo mad i had a error
davyn2000 2 years ago
ns tuto: it really works
minimalabarista 2 years ago
THANK YOU
I owe you one
saarujan 2 years ago
You are stupid or that the next time you put him faster than you are stupid
lccv1 2 years ago
thz man
Gabr1Dark 2 years ago
WOW! Thanks a lot! It really worked!!!
Greaseddog 2 years ago
Thanks man. This worked. I had a problem with O because I bymistake used to type 0 but thats cured.
kidbuu1991 2 years ago
Anyone know how would I be able to edit this code so I could play against the computer?
z3r0sh1ftx 2 years ago
I dunno how and why but the button doesn't disable after clicking it :(
ExploziveSushi 2 years ago
just wondering if its easier to disable all buttons with:
For i = 1 to (how many you have them)
button(i).enabled = false
next
Dunno if thats possible :P
Wegzo 2 years ago
awesome it worked
jwb72199 2 years ago
Ir reccommend adding areset score button :D I did
Label6.Text = "0"
Label7.Text = "0"
TheKlumzy 2 years ago
Mine messed up...
The game works ok but when it tries to change the '0' for win count to 1 I get this error.
InvalidCastException was unhandled
Conversion from string "O" to type 'Double' is not valid.
It happens when I click OK in the message box. Help Please?
coco4000000 2 years ago
the problem might be that you named the label "O" instead of "0". if u did that it will not work.
theonlinegamers 2 years ago
Actually I had the exact same problem, and I had put 0 instead of O. But my problem was that I had put "Wins:" and "0" in the same label therefore causing an error. So try making a separate label for it then trying it again. It worked fine for me.
Nat1498 2 years ago
i made one!!! hahaha
Kaxospere 2 years ago
Nice. Could you do a pong one pls? Im trying to make one, but i cant program well (i only got VB 2 days ago)
Dag2302 2 years ago
woa, thats great!!!!
kodama91 2 years ago
Very nice work! But next time you make a tut then piz put the code in the info :D
AimTroubleClan 2 years ago
If you write out the code yourself then you will learn very quickly.
xgusROX 2 years ago
pls send me the answer
gespasio 2 years ago
what about draw?
gespasio 2 years ago
I have finished but when I pressed play appears the game and I press on one of the button and it tells me dad I have won and I do not see any error HELP PLEASE
alex94o 2 years ago
hey really cool the video but i need help and if you can make the video a little slower because I need to do a work on it
alex94o 2 years ago
Comment removed
jamesrocksy 2 years ago
dude it workes!
needs computer to play aswell.
movnoy007 2 years ago
if i wright and it SAYS ERROR
dudeofgods 2 years ago
you should see everything and see if you find something wrong and I, too, had that problem but at last I found it
alex94o 2 years ago
when i load and click a button it says there an error on like if button1.text = "x" on and on and on IT DOESNT WORK HELP PLEASE
dudeofgods 2 years ago
ffs OMG MESSED IT DOESNT WORK OMG OMG OMG in the win shit its says it error OMG
dudeofgods 2 years ago
can you make a video how to create tic tac toe game but to play against the computer? or just answer please
VasilKuzevski 2 years ago
check out part 1
KingAmirFirdaus 2 years ago
I don't get how you can make "X" change to "O" (next tp "Player turn")
Please answer :)
Modecomx 2 years ago
I also don t understand it if you know please let me know
alex94o 2 years ago
When you the button is clicked on the label changes telling the next player it's their turn.
Example:
Private Sub If turn = 1 Then B3.Text = "O" Label6.Text = "X" 'After it's clicked the text above the grid will say O telling the next player it's their turn.
Nat1498 2 years ago
what code do i need to put in if a game is a draw or no winner please
psttransit 3 years ago
nice Tutorial ;)))
how can i make a score reset button??
if you see my post and reply tks man!! xD
sry if i wrote any thing wrong.... xD!!
2aa3aaa 3 years ago
"form1.refresh" i think. It is the easiest way to restart the score (It restarts the whole game lol)
rsmod123 3 years ago
@rsmod123
How to get a new game button:
1. make button 11 and rename to: New game
2. Double click button11
3. typ:
label6.text = "0"
label7.text = "0"
4. Now you have a New game Button!
AresKle12 1 year ago
@rsmod123 and @2aa3aaa
The score labels are Label6 and Label7
The code is:
Label6.text = "0"
Label7.text = "0"
There! Easy as pie!
SpritesOnPivot 1 year ago
@2aa3aaa well actually it's really simple you make a new button and you say Button11.Text = "Reset Score"
Button11_Click
Label6.Text = "0"
Label7.text = "0"
but 0 you have to be sure it is 0 not o
Cuccisoft 1 year ago
@2aa3aaa
make a reset button for the score the code is:
label6.text = "0"
label7.text = "0"
=)
THeTorbenxD 1 year ago
@2aa3aaa Label.Text = "0" Label.Enabled = True Label.Text = "0" Label.Enabled = True
Put your label numbers dont forget or it will error you
XxstiffmisterxX 1 year ago
@2aa3aaa Label.Text = "0" Label.Enabled = True Label.Text = "0" Label.Enabled = True
Put your label numbers from the 0 ptz and then make a reset score buttton put that in there and your reset numbers and your good enjoy a fast reset button.
XxstiffmisterxX 1 year ago
@2aa3aaa Make a button rename it Reset Score and then Private Sub Button11_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button11.Click Label7.Text = "0" Label7.Enabled = True Label8.Text = "0" Label8.Enabled = True End Sub
End Classbasicly you need to do it for both labels copy past em in the button and what ever your 0 labels are named change the 77 to whatever your top label is and then do it again for the other i hope this helps
XxstiffmisterxX 1 year ago
Hello i come from germany
a very good tutorial
LencoTv 3 years ago
thanks allot really cool
Keffoo123 3 years ago
thanks a lot man ;)
Zilvanost 3 years ago
i think i will create a 4 wins xD
hl2mukkel 3 years ago
do you create all games like this or is that easier? as example in valve or EA Games?
btw very nice tut
hl2mukkel 3 years ago
lol those games use C# I think o.0 sometimes the companies make their own program like "Warcraft 3 world creator" using c#, then use it to make a game.
rsmod123 3 years ago
@rsmod123
I heard it was c++?
Xomazai 1 year ago
Great tutorial thanks a lot
got only one question
how can i insert a button for a ne game witch clears the scoreboard?
sry for my english this isn't my motherlanguage
thx
Tom9504 3 years ago
form1.refresh() I think o.0
rsmod123 3 years ago
@rsmod123
You use this instead:
Make a new button
and
type this in:
Label6.text = "0"
Label7.text = "0"
IWillTeachYa 1 year ago
alexrozon 1 year ago
@Tom9504
make a reset button for the score the code is:
label6.text = "0"
label7.text = "0"
=)
THeTorbenxD 1 year ago
Doogledude123 1 year ago
Thanks alot!! amazing tutorial!
Jawad170 3 years ago
i luv this thank you so much it worked :P oh and i rly love the score monitoring that if you press reset the score stays and counts up unlike fake ones ive seen gud tut's 5/5 sub'd
strangeboybrad 3 years ago
thanks :)
rsmod123 3 years ago
that means that your "Win" sub has something wrong. In your win sub, make sure that you changed the "X" into "O" at the appropriate places.
rsmod123 3 years ago
disablebuttons() isn't working
sasankarocks 3 years ago
nid to type "Call disablebuttons()" but if it still doesn't work, try following the code again lols XD Something must be missing from your disablebuttons sub.
rsmod123 3 years ago
lol when i press on one button it only says O wins all the time
m4plepl4yer 3 years ago
after the message box, you can make, that it resets automatically.
Galileo1589 3 years ago
yeah, but sometimes, people don't notice that they lost, because they didnt spot the line yet lol XD so, the button press is just there so that they have some time to spot their mistake lol.
rsmod123 3 years ago
you are the man!!!
mangiantuning 3 years ago
You are the man too! lol thanks :)
rsmod123 3 years ago
THE MUSIC IS SHIT xDDD
THE VIDEO IS THE HIT XDDD
aetRene 3 years ago
lol i don't know if that is positive or negative, but i'm assuming its positive. Thanks!
rsmod123 3 years ago
its positive
MONKEYJUNK987 3 years ago
okay :) thanks for the comment btw :)
rsmod123 3 years ago
WOOO!!! nice
MONKEYJUNK987 3 years ago
Thanks! btw i emailed you already :)
rsmod123 3 years ago