ErrorProvider Icon

T

Tedy Pranolo

I'm working on an application which main form contains 25 instances of
a UserControl. This UserControl contains an ErrorProvider which uses
one of 3 icons depending on the UserControl state. All 25 instances of
the UserControl uses the same 3 (global) icons. After the UserControls
switches their states a few times an error will pop up stating that
the Icons are Nothing (null). I checked and rechecked, and I made sure
no code ever changes the global Icon variables once they are
initialized. It seems like the ErrorProvider disposed the icons
somehow.

Then there another problem with blinking. This can be easily tested
with a sample app. Create a windows application project. In the form
add 1 ErrorProvider, then add about 20 buttons. Then select all the
buttons and set their "Error on ErrorProvider1" property to "test".
Then set the ErrorProvider BlinkStyle to "AlwaysBlink". Run the
application. On my machine about half of errorProvider icons are not
shown.

Can anyone help me with these problems?
 

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