views:

759

answers:

2

Are the validation controls available in Visual Studio 2005 for Windows Forms like they are for Web Forms? I don't see them.

+4  A: 

Hi Billy, this can be implemented with the ErrorProvider class:

http://msdn.microsoft.com/en-us/library/system.windows.forms.errorprovider.aspx

Hope this helps!

Adam

Adam Alexander
+3  A: 

Michael Weinhardt developed a set of validation components for WinForms as part of the Genghis Project. He also wrote series of MSDN articles awhile back that expanded on these components and added a ValidationSummary component too:

Extending Windows Forms with a Custom Validation Component Library

Extending Windows Forms with a Custom Validation Component Library, Part 2

Extending Windows Forms with a Custom Validation Component Library, Part 3

David McClelland