To clear an error message, pass an empty string to the method, using the same control as a parameter. Use the SetError method to display the error icon next to the target control and display a specified error message when the user hovers the mouse over the error icon. ![]() This method sets the error description string for the specified control. This property controls whether the error icon blinks when an error is set.īlinks when the icon is already displayed and a new error string is set for the control.Īlways blinks when the error icon is first displayed, or when an error description string is set for the control and the error icon is already displayed. Use this property to increase or decrease the blink rate of the icon. This property controls the rate in milliseconds at which the error icon blinks. ![]() Use this property to change the icon used to indicate an error. Finally, the Click event handler for the OK button steps through all the controls on the form and verifies that none of them have errors before allowing the. In the case where you wish to display different icons or styles, you will need to use multiple ErrorProvider controls. You can use a single ErrorProvider for multiple controls. By playing with IconAlignment or IconPadding, you can show error icon of TabControl on one of the tab pages headers, but its error icon for the whole TabControl. Use the ErrorProvider if you want to notify the user that there is an input error by flashing an icon next to the input control. ErrorProvider shows error icon of the TabPage in tab pages client area. Provides a user interface for indicating that a control on a form has an error associated with it. User Rating: 5 / 5 Please Rate ErrorProvider Control
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |