This API supports the product infrastructure and is not intended to be used directly from your code.

Gets or sets the Input Method Editor (IME) mode supported by this control. Gets a value indicating whether the caller must call an invoke method when making method calls to the control because the caller is on a different thread than the one the control was created on.(Inherited from Control.)Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control.(Inherited from Control.)Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control.

Set the Icon for errorprovider1 (warning), errorprovider2 (wrong or cross) and errorprovider3 as a tick mark (for a correct entry).

errorprovider validating event-52errorprovider validating event-18errorprovider validating event-14

Another efficient use of the user control is to simply preload a Combo Box or List Box with static items you commonly use in almost every application; some examples of this are countries/regions, cities, states, and office locations.

For more information about authoring custom controls, see Developing Custom Windows Forms Controls with the . You might consider creating a namespace that contains several classes of user controls and compiling it into one DLL.

Validation means that any data input meets the application requirements in order to ensure consistency and correctness of the data.

There is a deep discussion about when, where and how this validation should be done.

This DLL can be referenced and distributed with the application or all applications within an organization.

This gives you the ability to reference the user control in many applications and save time laying out and coding the contained elements of the user control.A user control also gives you consistency within or across applications; for example, all address information input blocks will all have the same appearance and behavior.Consistency gives your application a more polished and professional appearance.Raises the Invalidated event with a specified region of the control to invalidate.(Inherited from Control.) gives you the ability to create controls that can be used in multiple places within an application or organization.You can include all the code needed for validation of common data you ask the user to input; some examples of this are e-mail addresses (see Example section), telephone numbers, and postal codes.Some checks are business rules and thus conceptually they must be done in the business layer of the multi-layer application or in the server-side of a client/server application.