how to autoredraw panel?

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
 
P

Peter Duniho

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top