You are on page 1of 7

Practical- 12

Implement a Windows application to


Perform Validation on various controls.
Minimum Theoretical Background

ErrorProvider:
The ErrorProvider control allows you to show the error message icon when user
enters some invalid data. You can use the SetError() method of an
ErrorProvider control.

RegularExpression :
RegEx class provides the regular expression we can define the various
categories of regular expressions such as characters, operators and constructs.
We can use the following methods for defining the RegularExpression.
1. Public Function IsMatch (input As String) As Boolean
2. Public Function IsMatch (input As String, startat As Integer ) As Boolean
3. Public Shared Function IsMatch (input As String, pattern As String ) As
Boolean
4. Public Function Matches (input As String) As MatchCollection
5. Public Function Replace (input As String, replacement As String) As String
Write a Program using ErrorProivider for username &
password authentication
RESULT: Hence we have successfully
performed the practical using error
provider.
Write a Program using ErrorProvider control to validate
the Mobile Number and Email ID in GUI application.
Result: Hence successfully performed
the practical using error provider.

You might also like