0

I have a WinForm with an ErrorProvider which I set like this

errorProvider1.SetError(textBox1, "Error description");

How can I check if all the data is valid like you do in ASP.NET as Form.IsValid()?

Do I have to use errorProvider1.GetError() for every control that I validate? Is there a better way?

Jonas Stawski
  • 6,562
  • 5
  • 60
  • 105

1 Answers1

2

There is no such thing you will have to create yourself. See this question WinForm UI Validation

Community
  • 1
  • 1
Tasawer Khan
  • 5,635
  • 6
  • 44
  • 68