Solved

c# if statment

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

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Email Body 4 47
Connection String to remote Server not working 3 57
Log4Net custom Appender not being fired. 5 45
Chat Room 1 29
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…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

759 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

22 Experts available now in Live!

Get 1:1 Help Now