hikki
April 2nd, 2003, 10:37 PM
Is there any good way for string checking?
I want to check any exitances of some specific strings in the textbox, but I just know this method.
if (textbox1.Text.IndexOf("specific string ") > 0 )
MessageBox.Show("repeated! ", "Error Input",MessageBoxButtons.OK , MessageBoxIcon.Warning);
any best solution for that? I think mine is not a good way....
I want to check any exitances of some specific strings in the textbox, but I just know this method.
if (textbox1.Text.IndexOf("specific string ") > 0 )
MessageBox.Show("repeated! ", "Error Input",MessageBoxButtons.OK , MessageBoxIcon.Warning);
any best solution for that? I think mine is not a good way....