Hello,
What do you think about this code? it works, but the Q is: is it a good one ?
Code Block
Private
Sub btnOK_Click(ByVal sender As System.Object, _ByVal e As System.EventArgs) Handles btnOK.Click
IfMe.RadioButtonFriendID.Checked = FalseAnd _
Me.RadioButtonFriendName.Checked = FalseThen
"You didn't check what you are looking for!")MessageBox.Show(
ElseIfMe.txtSearchInput.Text.Trim() <> ""And IsNumeric(Me.txtSearchInput.Text) And _
Me.RadioButtonFriendID.Checked Then
MessageBox.Show("You are looking for your Friend ID!")
Else
IfMe.RadioButtonFriendName.Checked AndMe.txtSearchInput.Text.Trim <> ""Then
"You are looking for your Friend's name")ElseMessageBox.Show(
"Wrong input!!") EndIfEndIfEndSubMessageBox.Show(
Thank you in advance