Skip to content

Drawing.grapics ResetTransform hangs locks up

Eric

Asked Feb 21, 2008, 6:33 AM EST1 answer
Share
LinkedInX

I have an overload on the OnPaint event which is doing:

Code
g.TranslateTransform(m_yAxisLabelLocation.X, m_yAxisLabelLocation.Y); // + g.MeasureString(m_yAxisLabel, m_yAxisLabelFont).Height);
g.RotateTransform(270);
g.DrawString(m_yAxisLabel, m_yAxisLabelFont, Brushes.Black, 0, 0);
g.ResetTransform();

 

After running for a while my application seems to hand / lockup and when I look at where it is stopped it is on the ResetTransform function.  I am completely stumped.  Has anyone seen this problem or have any suggestions?

 

Eric

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 1 short reply
    • 0

      bump.

      0