Pavel

Pavel

  • 1.6k
  • 170
  • 51.1k

GDI+ application: write text over existing one

Sep 14 2012 6:40 AM

Hello,

In my GDI+ application I need to change dynamically some texts. If just write new string over existing one, 2 strings will be superposed.
So, one should to remove old string before to write the new one.
Only solution I found for the moment is to invalidate the specific region of the control, where graphics are drawn (Panel in my case).
It works perfectly - after applying pnl_Graphics.Invalidate(rect1), all graphics inside of rect1 disappear.

But when I draw new text in the same region, it doesn't appear !

What could be a workaround ?

Thanks in advance.

Pavel.


Answers (3)