I have a VB.NET WinForms application.
I am drawing a bunch of shapes on a panel programmatically with GDI+.
Now I want to hightlight a small rectangular portion of that panel in some way. The highlighted area will move around a lot. I don’t want to redraw the whole panel, because there is too much processing involved and it causes flicker.
What it the best way to do this?
Thanks.
Can you add a transparent panel as a child of your existing panel (and dock it), and then do your highlights on the transparent panel?
Here’s a very rudimentary example: