Solved

c# if statment

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

829 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