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

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.