|
 |
application_development thread: RequiredFieldValidator equivalent!
Message #1 by "Mazen Alzogbi" <MAlzogbi@s...> on Wed, 5 Feb 2003 22:58:55 +0400
|
|
Hi,
I am not a WinForms app developer so bare with me :)
The RequiredFieldValidator control in ASP.NET allows me to validate the
content of any textbox control if entered or not. I want to achieve the
same with WinForms applications using C#. Well, I know the ErrorProvider
class but that doesn't help much. Let us say, I need a mechanism that
allows me to disable/enable an accept button (OK button) on the form
depending if required fields are filled or not.
I know how to loop via all textbox controls but I am not going to do
this for every *form* in the project.
Did anyone achieve this before whether using custom or built-in
approach?
TIA,
Mazen
Message #2 by Ron Campbell <rcampbel@r...> on Wed, 05 Feb 2003 12:10:35 -0700
|
|
i was lucky enough to retire and am no longer doing any programming, thanks
though!!
At 10:58 PM 2/5/2003 +0400, you wrote:
>Hi,
>I am not a WinForms app developer so bare with me :)
>
>The RequiredFieldValidator control in ASP.NET allows me to validate the
>content of any textbox control if entered or not. I want to achieve the
>same with WinForms applications using C#. Well, I know the ErrorProvider
>class but that doesn't help much. Let us say, I need a mechanism that
>allows me to disable/enable an accept button (OK button) on the form
>depending if required fields are filled or not.
>
>I know how to loop via all textbox controls but I am not going to do
>this for every *form* in the project.
>
>Did anyone achieve this before whether using custom or built-in
>approach?
>
>TIA,
>
>Mazen
>
>
>
Message #3 by "Mazen Alzogbi" <malzogbi@s...> on Thu, 6 Feb 2003 07:23:53
|
|
Ron,
Thanks for what?!!!
Mazen
> i was lucky enough to retire and am no longer doing any programming,
thanks
though!!
|
|
 |