Click here to Skip to main content
16,015,218 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Email address validation Pin
Christian Graus15-Jan-07 18:53
protectorChristian Graus15-Jan-07 18:53 
GeneralRe: Email address validation Pin
amaneet15-Jan-07 19:01
amaneet15-Jan-07 19:01 
AnswerRe: Email address validation Pin
Sachin Pimpale15-Jan-07 18:56
Sachin Pimpale15-Jan-07 18:56 
GeneralRe: Email address validation Pin
Rajiya15-Jan-07 19:28
Rajiya15-Jan-07 19:28 
GeneralRe: Email address validation Pin
Dave Sexton15-Jan-07 20:17
Dave Sexton15-Jan-07 20:17 
GeneralRe: Email address validation Pin
Rajiya15-Jan-07 21:07
Rajiya15-Jan-07 21:07 
GeneralRe: Email address validation Pin
the.bombardier15-Jan-07 22:10
the.bombardier15-Jan-07 22:10 
AnswerRe: Email address validation Pin
Hendrick16-Jan-07 7:02
Hendrick16-Jan-07 7:02 
Hi,

If have this solution in VB.NET.

So it wil be helpfull for you.

Regards


Public Shared Function ValidEmailAddress(ByVal emailAddress As String, ByRef errorMessage As String, ByVal Textbox As System.Windows.Forms.TextBox) As Boolean
' Confirm there is text in the control.
If Textbox.Text.Length = 0 Then
Return True
else
errorMessage = "E-mail address is required."
Return False
End If

' Confirm that there is an "@" and a "." in the e-mail address, and in the correct order.
If emailAddress.IndexOf("@") > -1 Then
If (emailAddress.IndexOf(".", emailAddress.IndexOf("@")) > emailAddress.IndexOf("@")) Then
errorMessage = ""
Return True
End If
End If

errorMessage = "E-mail address must be valid e-mail address format." + ControlChars.Cr + _
"For example 'someone@example.com' "
Return False
End Function


Hi,

If have this solution in VB.NET.

So it wil be helpfull for you.

Regards
H.w. Hendrick, Netherlands
Questionline numbers? Pin
Rahithi15-Jan-07 18:03
Rahithi15-Jan-07 18:03 
AnswerRe: line numbers? Pin
priya_p23315-Jan-07 18:14
priya_p23315-Jan-07 18:14 
AnswerRe: line numbers? Pin
Christian Graus15-Jan-07 18:22
protectorChristian Graus15-Jan-07 18:22 
GeneralRe: line numbers? Pin
amaneet15-Jan-07 19:16
amaneet15-Jan-07 19:16 
GeneralRe: line numbers? Pin
Christian Graus15-Jan-07 19:30
protectorChristian Graus15-Jan-07 19:30 
GeneralRe: line numbers? Pin
amaneet15-Jan-07 19:34
amaneet15-Jan-07 19:34 
GeneralRe: line numbers? Pin
Christian Graus15-Jan-07 22:26
protectorChristian Graus15-Jan-07 22:26 
GeneralRe: line numbers? Pin
amaneet15-Jan-07 22:49
amaneet15-Jan-07 22:49 
GeneralRe: line numbers? Pin
Enriad19-Jan-07 14:04
Enriad19-Jan-07 14:04 
QuestiondataGridView ColumnType as DateTimePicker? Pin
priya_p23315-Jan-07 18:02
priya_p23315-Jan-07 18:02 
AnswerRe: dataGridView ColumnType as DateTimePicker? Pin
amaneet15-Jan-07 18:52
amaneet15-Jan-07 18:52 
QuestionRe: dataGridView ColumnType as DateTimePicker? Pin
amaneet15-Jan-07 19:43
amaneet15-Jan-07 19:43 
GeneralRe: dataGridView ColumnType as DateTimePicker? Pin
priya_p23315-Jan-07 19:50
priya_p23315-Jan-07 19:50 
QuestionHow to encrypt content of text file with vb.net Pin
roitha15-Jan-07 16:49
roitha15-Jan-07 16:49 
AnswerRe: How to encrypt content of text file with vb.net Pin
Vasudevan Deepak Kumar15-Jan-07 17:01
Vasudevan Deepak Kumar15-Jan-07 17:01 
AnswerRe: How to encrypt content of text file with vb.net Pin
Christian Graus15-Jan-07 17:09
protectorChristian Graus15-Jan-07 17:09 
AnswerRe: How to encrypt content of text file with vb.net Pin
FeRtoll15-Jan-07 22:09
FeRtoll15-Jan-07 22:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.