|
-
April 2nd, 2003, 11:37 PM
#1
way for string checking?
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....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|