Jump to content


Photo

Drowing and Delaying in Visual C#


  • Please log in to reply
No replies to this topic

#1 Arto

Arto

    Young Padawan

  • Members
  • Pip
  • 1 posts

Posted 17 August 2008 - 01:43 PM

I have such as a cod, it should be wait for 3second, and then drow line, and repeat all this 4 times, but it waits 12 second(3x4) and the drows 4 lines at onse. what is the problem??
//////////////////////////////////////////////////////////////////////////////////
Pen myPen = new Pen(System.Drawing.Color.Red, 1);
for (int ii = 0; ii <= 3; ii++)
{
Thread.Sleep(3000);
graphDrawingAxis.DrawLine(myPen, ii*200, 350, 200, 120);
} /////////////////////////////////////////////////////////////////////////////


even this dosen't work

graphDrawingAxis.DrawLine(myPen, x1, y1, x2, y2);
Thread.Sleep(3000);
graphDrawingAxis.DrawLine(myPen, x3, y3, x4, y4);




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users