c# if statment

Hi guys ,

I would like to know how can I write if statement......let's say  I have textbox and I want to say  " if (textbox1.text == (to anything written inside)" messagebox.show("bla bla")


actually what i'm trying to figure out is how can I say that anything written in the textbox1.text = do something
LVL 1
Moti Mashiah.NET DeveloperAsked:
Who is Participating?
 
käµfm³d 👽Connect With a Mentor Commented:
if (textbox1.Text.Length > 0)
{
    // do something
}

Open in new window

0
 
Moti Mashiah.NET DeveloperAuthor Commented:
Thank you sooo much
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.