Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / October 2007

Tip: Looking for answers? Try searching our database.

how to autoredraw panel?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alex K. - 31 Oct 2007 20:32 GMT
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
Peter Duniho - 31 Oct 2007 20:47 GMT
> I set a panel's backgroundimage at design time. I have few textboxes on the
> panel.
[quoted text clipped - 3 lines]
> 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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.