Simple suggestion from what I have done in .Net to differentiate between null and empty - create a textbox (inherited from the standard one) with an IsNull boolean property. When the text changes you can make it False, or based on your own needs. Even were it possible I would not override the text property to return Null.
Cheers, Iain -----Original Message----- From: Dunne, Joe [mailto:[EMAIL PROTECTED]] Sent: 20 July 2002 17:24 To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] Setting textbox.text to NULL Mike, to validate an empty textbox you check for an empty string textbox1.text = "" If you bind a textbox to a dataset me thinks it will set the text to "" for a null value. I haven't tried this but give it a go and see what happens. HTH joe -----Original Message----- From: Mike McIntyre To: [EMAIL PROTECTED] Sent: 7/19/2002 6:09 PM Subject: [ADVANCED-DOTNET] Setting textbox.text to NULL Is it possible to set the text property of a textbox to a System or SQL type NULL? I can set a column in a dataset to NULL just fine, using coding. Now I would like to set the value of textbox.text to NULL on a textbox bound to the dataset. This is so I can process the NULL value in the textbox validate event. Mike You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. Disclaimer This message may contain information which is legally privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any unauthorised disclosure, copying, distribution or use of this information is strictly prohibited. Such notification not withstanding, any comments or opinions expressed are those of the originator, not of Taylor Made Computer Solutions, unless otherwise explicitly stated. You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.
