How to remove the added tag to the tagtextbox?


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!

  • You must to post comments

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.



  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.