Search code examples
errorprovider

how to set errorprovider icon left the control?


I want, set "error provider" icon left the text box or combo box ?! I tried this code. But the feature that wrong!

errorProvider1.GetIconAlignment(errorProvider1,ErrorIconAlignment.MiddleLeft); errorProvider1.SetError(textBox1 , "Can't Empty");


Solution

  • Without that code was set. In the "error Provider" properties, Using the " Right To Left " property.