How can achieve the following with Select Case Statement.
'Validate data.
If txtFirstName.Text = "" Then
MessageBox.Show("Please provide First Name", "Information", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
txtFirstName.Focus()
Exit Sub
Else
If txtLastName.Text = "" Then
MessageBox.Show("Please provide Last Name ", "Information", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
txtLastName.Focus()
Exit Sub
Else
If txtDOB.Text = "" Then
MessageBox.Show("Please provide DOB", "Information", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
txtDOB.Focus()
Exit Sub
Else
If txtTime.Text = "" Then
MessageBox.Show("Please provide Time", "Information", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
txtTime.Focus()
Exit Sub
End If
End If
End If
End If
'Validate data.
If txtFirstName.Text = "" Then
MessageBox.Show("Please provide First Name", "Information", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
txtFirstName.Focus()
Exit Sub
Else
If txtLastName.Text = "" Then
MessageBox.Show("Please provide Last Name ", "Information", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
txtLastName.Focus()
Exit Sub
Else
If txtDOB.Text = "" Then
MessageBox.Show("Please provide DOB", "Information", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
txtDOB.Focus()
Exit Sub
Else
If txtTime.Text = "" Then
MessageBox.Show("Please provide Time", "Information", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
txtTime.Focus()
Exit Sub
End If
End If
End If
End If