how to autoredraw panel?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all

I set a panel's backgroundimage at design time. I have few textboxes on the
panel.
Every time I use right mouse click to copy/paste into these textboxes, the
pieces of system popup menu stick to the background and can only be removed
by minimizing / restoring the form, i.e. re-painting it. This does not look
nice.
Is there any way to make the panel auto-redraw itself?

Thank you
Alex
 
I set a panel's backgroundimage at design time. I have few textboxes on the
panel.
Every time I use right mouse click to copy/paste into these textboxes, the
pieces of system popup menu stick to the background and can only be removed
by minimizing / restoring the form, i.e. re-painting it. This does not look
nice.
Is there any way to make the panel auto-redraw itself?

Normally, it should already. The system should be caching the bits
under the menu or when it can't do that, invalidating the area
affected, causing a redraw. Are you doing some sort of custom drawing,
or otherwise altering the normal control invalidate/redraw mechanism?

You should probably post a concise-but-complete sample of code that
demonstrates the problem.

Pete
 
Back
Top