Hi. I just wanted to know if there is anyway to make a textbox recognise if there is text or not. I don't want it to be textbox1.text = "". Is there a legitimate way?

Recommended Answers

Is there a legitimate way?

It is legitimate. Perhaps you're looking for: String.IsNullOrEmpty(TextBox1.Text)

Jump to Post

All 2 Replies

Is there a legitimate way?

It is legitimate. Perhaps you're looking for: String.IsNullOrEmpty(TextBox1.Text)

Thank you!. That seemed to work.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.