We help IT Professionals succeed at work.

Draw Functionality Halts

Last Modified: 2013-11-13
In TicTacToe When the draw occurs form became halts and stop down

Below is the code that all related to draw functionality

public void Draw()
lblDraw.Visible = true;
lblDraw.Enabled = true;

public void checkAll()

else if (box1.Image != null && box2.Image != null && box3.Image != null && box4.Image != null && box5.Image != null
&& box6.Image != null && box7.Image != null && box8.Image != null && box9.Image != null)
// DRAW occurs

private void resetBtn_Click(object sender, EventArgs e)


public void reset()
lblDraw.Visible = false;
lblDraw.Enabled = false;
box1.Image = null;
box2.Image = null;
box3.Image = null;
box4.Image = null;
box5.Image = null;
box6.Image = null;
box7.Image = null;
box8.Image = null;
box9.Image = null;

public void displayAgain()
box1.Enabled = true;
box2.Enabled = true;
box3.Enabled = true;
box4.Enabled = true;
box5.Enabled = true;
box6.Enabled = true;
box7.Enabled = true;
box8.Enabled = true;
box9.Enabled = true;

It stops when the game is done few times i mean when their is some winning occurs then it halts at when the draw label appears. And reset button is no more clickable.

There is no exception occurs at any point.
Watch Question

This one is on us!
(Get your first solution completely free - no credit card required)


I changed thanks
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.