On 2007-10-31 12:32:03 -0700, Alex K. <Al***@discussions.microsoft.comsaid:
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