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 KumarPosted Apr 13, 2020, 12:11 AM
Jaimin ShethiyaPosted Apr 13, 2020, 10:44 PM
Can you please try to below code.
Thanks.
Jignesh KumarPosted Apr 12, 2020, 11:15 PM
Rajanikant HawaldarPosted Apr 12, 2020, 11:06 PM