More ErrorProvider issues (wierd display)

More ErrorProvider issues (wierd display)

Old forum URL: forums.lhotka.net/forums/t/272.aspx


ajj3085 posted on Monday, June 05, 2006

Hi all,

I have the error providers working now.  They display when they are supposed to, its how they display thats odd.

I have 3 error providers, one for each control.  Two controls are on a panel, the third is on another panel.. the panels are hidden and displayed as part of a wizard UI.

When the providers blink, you see the icon, but there's another icon directly behind and offset to the side a bit.  Odder still, on the second page (with just one control which has the provider), the icon flashes MiddleLeft AND MiddleRight (I only want it to use MiddleLeft).

The only other odd thing I noticed is that on each of the textbox's which are bound to the same property as the provider, the designer shows IconAlignment on xx and IconPadding on xx for ALL the error providers. 

All the controls share the same binding source.

Any ideas?
Andy

RockfordLhotka replied on Monday, June 05, 2006

I would think you should only have one ErrorProvider control per binding source per form. The ErrorProvider control is an extender control, and it will extend all visible controls that are bound to the same binding source as your ErrorProvider - so you should not have one per visible control, but rather one per binding source.

ajj3085 replied on Tuesday, June 06, 2006

Ok.. I'll remove the extras and see what happens.

Thanks

Copyright (c) Marimer LLC