The checkOrder() method is wrong as well. The index should be initialize as int index = 1, not int index = 0. Since the number on the box start from 1-8 if we do the Convert.ToInt16(), then at the beginning if we say index = 0, it would be impossible to check for the win condition. Because at the first iteration it says 1 != 0 which it will become a useless method since it will never success to check for the win condition.
Sometimes, some block don't move because TabIndex is not correctly. I have some method to fix that. First, you click on View => TabOrder . After that, you will see the number of TabIndex on controls. You can click it and you can solve the problem.
hi, your project is very nice. There is a small problem, when the game ends (when the squares are aligned correctly) it does not tell you that you have finished the game. byei!
I have some problems with moving buttons ,somtimes they are crossing ,sometimes they aren't going up ,how can i solve it ,pls ,can you put the full code there
The checkOrder() method is wrong as well. The index should be initialize as int index = 1, not int index = 0. Since the number on the box start from 1-8 if we do the Convert.ToInt16(), then at the beginning if we say index = 0, it would be impossible to check for the win condition. Because at the first iteration it says 1 != 0 which it will become a useless method since it will never success to check for the win condition.
Sometimes, some block don't move because TabIndex is not correctly. I have some method to fix that. First, you click on View => TabOrder . After that, you will see the number of TabIndex on controls. You can click it and you can solve the problem.
Thank you for the fix
hi, your project is very nice. There is a small problem, when the game ends (when the squares are aligned correctly) it does not tell you that you have finished the game. byei!
I have some problems with moving buttons ,somtimes they are crossing ,sometimes they aren't going up ,how can i solve it ,pls ,can you put the full code there
Thanks for this quick tutorial
Mahmood Hasson you are welcome
Which version of .Net Framework is this programmed on?
Nevermind just saw
Why is that some blocks aren't moving?
you can only move the block near the blank block
Even there's a blank block it won't move. Sometimes the other number crossed to the blank block or like jump 🤣
Mine as well ,i couldnt move some of them
usefull coding