Solved

c# if statment

Posted on 2014-04-14
2
195 Views
Last Modified: 2014-04-14
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
0
Comment
Question by:Moti Mashiah
2 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 40000406
if (textbox1.Text.Length > 0)
{
    // do something
}

Open in new window

0
 
LVL 1

Author Closing Comment

by:Moti Mashiah
ID: 40000420
Thank you sooo much
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question