vbcode1980
May 31st, 2007, 01:55 AM
Hi,
I have a form with a background image, and I use System.Drawing.Graphics.DrawString() to draw text on the form.
That works fine.
Now all I need is a way to refresh the screen when the text has been changed.
I've tried this.Refresh() and this.Invalidate() but they produce a flicker, because the entire screen is repainted.
is there a way to clear and repaint only the text, without having to repaint the background image as well?
I have a form with a background image, and I use System.Drawing.Graphics.DrawString() to draw text on the form.
That works fine.
Now all I need is a way to refresh the screen when the text has been changed.
I've tried this.Refresh() and this.Invalidate() but they produce a flicker, because the entire screen is repainted.
is there a way to clear and repaint only the text, without having to repaint the background image as well?