
Signature
--
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.
On Sep 18, 2:21 am, "Bob Powell [MVP]" <b...@spamkillerbobpowell.net>
wrote:
> Do you have other code in these controls such as changed event handlers that
> in-turn fire off an Invalidate or something. These can cause "ringing"
[quoted text clipped - 36 lines]
>
> - Show quoted text -
I am seeing the 'event storm' occur with some debugging and profilign
tools I have. My user controls directly have very few triggering
events. However, I use a tab control from Infragestics to host my
user control on one of its tabs and it has a couple of events being
triggered hundreds of times during all of this. My current plans is
to switch to the MS tab control to see if this problem goes away, as I
can not descern any reasonable reason for the event storm, nor can I
track exactly what is triggering it. Near as I can tell, the event
storm starts when I add the panel with my user controls to the tab
page.
As for the creation of my user controls, they do have their own event
storms going on (thus the 3 seconds) but I understand those and I'm
slowly working thru them. By the time I added the user panel with my
custom controls on it to the tab page, my event storm from the items
changes is finished. When I add the panel, my user controls are
getting 40+ refresh calls before being fully rendered. Yet none of my
Changed events are firing... Also the background paint event seems to
be called most often...
While I am havign good success tracing what happens when I place my
controls in the MS panel... I've been unable to trace through the
infragestic controls to see what is going on, which is a bit
frustrating...
Bob Powell [MVP] - 09 Dec 2007 16:11 GMT
Are you using combo-boxes? One of the classic problems with data bound combo
boxes is that they fire their SelectedItemChanged event as each item is
bound.
As to your use of Infragistics tools, be aware that Infragistics uses
different principles to those of Windows Forms and tuning these controls can
present a problem. As this is an essentially Microsoft forum I suggest you
hit the Ifragistics dedicated newsgroups.

Signature
--
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.
> On Sep 18, 2:21 am, "Bob Powell [MVP]" <b...@spamkillerbobpowell.net>
> wrote:
[quoted text clipped - 67 lines]
> infragestic controls to see what is going on, which is a bit
> frustrating...