Hi !
I got a program where user types a text into textbox and then it rewrites the text (sendkeys)
However when a user types a character like ~ % ^ ( ) + it crashes.I have fixed all characters,but ( and ) somehow cant be replaced, (for other i used Replace(TextBox1.Text, "character", " ") )
When i write a ( or ) into the textbox theres a error :
Group markers are unsustainable
and it marks the sendkeys line.
Code :
How to delete ( and ) from thext (or replace it ? )
Also, why i cant use for example {+} as a replace for + ? When i use {+} it makes space, just like id use " " ...
I got a program where user types a text into textbox and then it rewrites the text (sendkeys)
However when a user types a character like ~ % ^ ( ) + it crashes.I have fixed all characters,but ( and ) somehow cant be replaced, (for other i used Replace(TextBox1.Text, "character", " ") )
When i write a ( or ) into the textbox theres a error :
Group markers are unsustainable
and it marks the sendkeys line.
Code :
Code:
Private Sub input3_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles input3.Tick
Replace(TextBox3.Text, "+", " ")
Replace(TextBox3.Text, "^", " ")
Replace(TextBox3.Text, "%", " ")
Replace(TextBox3.Text, "~", " ")
Replace(TextBox3.Text, "(", " ")
Replace(TextBox3.Text, ")", " ")
SendKeys.Send(TextBox3.Text "{Enter}")
End Sub
Also, why i cant use for example {+} as a replace for + ? When i use {+} it makes space, just like id use " " ...