3
Answers

GDI+ application: write text over existing one

Pavel

Pavel

12y
1.4k
1

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)