471,356 Members | 1,648 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,356 software developers and data experts.

Validating values in winforms

Hello everyone,

I have an application windows , framework 2.0 + vs2005, and forms, with
textboxes that I have validations of their values.

Which is the fastest way to do this?
using validation with Enterprise Library?
using errorProvider Validating and events?

Please, samples codes about it...

Anyboy knows custom controls , open source, would be appreciated.

For example, a textbox Numeric, which allows only numbers, and one for
decimals, etc.

Greetings and thanks in advance.

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net
http://www.setbb.com/putainformatica...opic.php?p=843
www.trabajobasura.com/solusoft

Jun 27 '08 #1
3 1930
I prefer validation controls...
-Cnu

Alhambra Eidos Kiquenet wrote:
Hello everyone,

I have an application windows , framework 2.0 + vs2005, and forms, with
textboxes that I have validations of their values.

Which is the fastest way to do this?
using validation with Enterprise Library?
using errorProvider Validating and events?

Please, samples codes about it...

Anyboy knows custom controls , open source, would be appreciated.

For example, a textbox Numeric, which allows only numbers, and one for
decimals, etc.

Greetings and thanks in advance.

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net
http://www.setbb.com/putainformatica...opic.php?p=843
www.trabajobasura.com/solusoft
Jun 27 '08 #2
any sample code, please ???
--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net
http://www.setbb.com/putainformatica...opic.php?p=843
www.trabajobasura.com/solusoft

"Duggi" wrote:
I prefer validation controls...
-Cnu

Alhambra Eidos Kiquenet wrote:
Hello everyone,

I have an application windows , framework 2.0 + vs2005, and forms, with
textboxes that I have validations of their values.

Which is the fastest way to do this?
using validation with Enterprise Library?
using errorProvider Validating and events?

Please, samples codes about it...

Anyboy knows custom controls , open source, would be appreciated.

For example, a textbox Numeric, which allows only numbers, and one for
decimals, etc.

Greetings and thanks in advance.

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net
http://www.setbb.com/putainformatica...opic.php?p=843
www.trabajobasura.com/solusoft
Jun 27 '08 #3
The easiest way to validate data is to ensure that it comes in
correctly in the first place. I'm in favor of having controls that
only allow the type of value that I'm looking for, that way I don't
have to validate it in the code.
Jun 27 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by The Plankmeister | last post: by
6 posts views Thread by mike | last post: by
1 post views Thread by Mike | last post: by
2 posts views Thread by Ken Loomis | last post: by
4 posts views Thread by Eric | last post: by
reply views Thread by Wayne Phipps | last post: by
3 posts views Thread by TheSteph | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.