tags:

views:

69

answers:

2

Hi,

I have a ComboBox that has an associated ErrorProvider in the user control it belongs to. When an error happens, I want to display an icon on the left of the combo.

However, no matter what value I set as IconAlignment for my combo, the icon gets displayed on the right. Do you guys have any idea what could be wrong here?

Thanks for any help.

A: 

in the error provider itself, set the RightToLeft property to true.

Sameh Serag
A: 

If you call Clear() method on ErrorProvider, it resets IconAlignment on associated controls.

You can use ErrorProvider's SetError(control, String.Empty) to clear the error for combobox.

Borislav Ivanov