Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Section G.18. ErrorProvider

G.18. ErrorProvider

The ErrorProvider component indicates to the user that another control has an error associated with it. ErrorProvider is an extender provider, so it adds a new Error property to the other controls on its form. For example, if the ErrorProvider is named ErrorProvider1, each control on the form gets a new property named "Error on ErrorProvider1." At design time, use the Properties window to set or clear this value.

To associate an error with a control at runtime, use the ErrorProvider's SetError method. The ErrorProvider automatically displays a red circle containing an exclamation mark next to the control. If the user hovers the mouse over the circle, the ErrorProvider displays a tooltip giving the error text.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial