Solved

c# if statment

Posted on 2014-04-14
2
194 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ASP.NET Web API or ASP.NET Core MVC? 3 51
Linq Help 1 35
Need to pass a connection through class/Method 1 39
Turn on intranet settings 1 36
Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

919 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now