471,627 Members | 1,572 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,627 software developers and data experts.

paint event

Hi,
I have a user control and panel in this control. I write a paint event
of the panel control. When I strat the application (windows form with
this control only) the paint event executes twice.

Why is this?
Thanks.

Dec 4 '05 #1
1 1867
Paint often executes several times. As long as your control handles Paint
correctly this won't be a problem.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"edi sol" <es********@gmail.com> wrote in message
news:11*********************@g47g2000cwa.googlegro ups.com...
Hi,
I have a user control and panel in this control. I write a paint event
of the panel control. When I strat the application (windows form with
this control only) the paint event executes twice.

Why is this?
Thanks.

Dec 4 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Tamir Khason | last post: by
4 posts views Thread by Tamir Khason | last post: by
2 posts views Thread by Rene | last post: by
8 posts views Thread by WStoreyII | last post: by
7 posts views Thread by hamil | last post: by
4 posts views Thread by Krat | last post: by
7 posts views Thread by Rotsey | last post: by
5 posts views Thread by =?Utf-8?B?SmVzcGVyLCBEZW5tYXJr?= | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.