Visual basic coding, how do I do this?

Under any event (button click, text changed etc.) how do I remove all "-" characters from a textbox?

My textbox is named Resultbox.

husoski2013-06-28T16:04:21Z

Favorite Answer

The Resultbox.text field is a regular VB string, so you can do anything with it that you can with any other string. See
msdn.microsoft.com/en-us/library/dd789093.aspx

The function you want is Replace:

Resultbox.text = Replace(Resultbox.text, "-", "")

More about Replace at:
http://msdn.microsoft.com/en-us/library/microsoft.visualbasic.strings.replace.aspx

Aleks2013-06-28T22:54:57Z

me.Resultbox = replace(me.Resultbox,"-","")

Anonymous2013-06-28T22:50:32Z

resultbox.text = ""