Hello,

Does there exist an function which examines automatically if the textbox is
empty or not?

mat

Re: textbox-function by Peter

Peter
Wed Oct 20 03:44:59 CDT 2004

You can compare the Text property to an empty string ("")

C#

if(textBox1.Text == String.Empty)
{
}

VB

If TextBox1.Text = String.Empty Then

End If


Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups

"mathon" <mathon@discussions.microsoft.com> wrote in message
news:18ADC98F-3042-4DAB-BA82-7C1E696765A2@microsoft.com...
> Hello,
>
> Does there exist an function which examines automatically if the textbox
> is
> empty or not?
>
> mat



Re: textbox-function by mathon

mathon
Wed Oct 20 09:29:09 CDT 2004



Oh, I thought I could use the Validated or Validatin event handler...?

Re: textbox-function by Chris

Chris
Wed Oct 20 13:31:28 CDT 2004

You still have to do the compare in the handler. The famework, while quite
robust, still isn't a mind reader. Valid to your app isn't necessary valid
to another.

-Chris


"mathon" <mathon@discussions.microsoft.com> wrote in message
news:8D417BA9-C4BF-4CD3-84DB-9F55F2F7DA8E@microsoft.com...
>
>
> Oh, I thought I could use the Validated or Validatin event handler...?