By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,950 Members | 1,005 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,950 IT Pros & Developers. It's quick & easy.

vb.net string validation

P: 1
hello dear's...
plz clear my doubt in vb.net...

consider 2 textbox.first one is for holding a simple statement.second one is for holding paragraph.if a particular word exist in both the textboxes means ,it need to prompt an error(don't forget the second textbox contains paragraph)
Jul 18 '12 #1
Share this Question
Share on Google+
2 Replies


Rabbit
Expert Mod 10K+
P: 12,347
Loop through every word in one textbox and search for it in the other.
Jul 18 '12 #2

Frinavale
Expert Mod 5K+
P: 9,731
You could try using the String.Contains method to check if the word exists.

Or you could use a Regular Expression to see if the string matches the regular expression.

There are a lot of ways to accomplish this.

-Frinny
Jul 27 '12 #3

Post your reply

Sign in to post your reply or Sign up for a free account.