TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Lia Meeds
NA
110
4.4k
How to do If Statement to detect multiple words in a string?
Apr 12 2020 10:53 PM
private void ButtonCheck_Click(object sender, EventArgs e)
{
string s = textBoxMessage.Text;
if (s.Contains("FREE") == true)
{
MessageBox.Show("Its not a SPAM", "SMS SPAM DETECTION TOOL | KEYWORD", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else if (s.Contains("GET") == true)
{
MessageBox.Show("Its a SPAM", "SMS SPAM DETECTION TOOL | KEYWORD", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else
{
MessageBox.Show("Its not a SPAM", "SMS SPAM DETECTION TOOL", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
I dont know how to detect multiple words in a sentence.
Reply
Answers (
4
)
connecter à une base de donnée via app.config
Object cannot be cast from DBNull to other types.