graphics don't draw when loop condition is dates. c#, winForms
- by jello
so i got this piece of code. (currPosX is defined earlier)
while (earliestDate < DateTime.Today)
{
currPosX = currPosX + 5;
e.Graphics.DrawLine(Pens.Black, currPosX, 0, currPosX, 10);
earliestDate = earliestDate.AddDays(1);
}
the graphics don't draw. it's really weird, since this only…