Hi! Im using the “TagAdded” event, and i have a check if the tag added is a valid phone number, and if the return is false i would like to make the tag to disappear when the user adds it.
Something like this:
Private Sub TagTextBox2_TagAdded(sender As Object, e As TagTextBoxEventArgs) Handles TagTextBox2.TagAdded
if not e.Text.StartsWith(“+351”) then
‘don’t add the tag…
End if
End Sub
Thanks for the help guys!
Hi Ruben,
The TagAdded event occurs after the tag has already been added to the TagTextBox. You’ll need to remove it from the TagTextBox.Text property.
Best,
Levie
Please login first to submit.