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.
I dont know how to detect multiple words in a sentence.

Avnish KumarRank #1,003 · 2K reputationPosted Apr 12, 2020, 8:11 PM EDT
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Apr 12, 2020, 7:06 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Apr 12, 2020, 7:15 PM EDT
Jaimin ShethiyaRank #177 · 13.7K reputationPosted Apr 13, 2020, 6:44 PM EDT
Can you please try to below code.
Thanks.