Witam!
Przy wypisaniu tekstu na oknie znika po jego minimalizacji co należy zrobić aby tak nie było?
public void DrawString(string text, float x, float y, string font, int size)
{
Graphics formGraphics = CreateGraphics();
string drawString = text;
Font drawFont = new Font(font, size);
SolidBrush drawBrush = new SolidBrush(Color.White);
StringFormat drawFormat = new StringFormat();
formGraphics.DrawString(drawString, drawFont, drawBrush, x, y, drawFormat);
drawFont.Dispose();
drawBrush.Dispose();
formGraphics.Dispose();
}