<p>I'm currently in the process of writing a wizard and want to make each page validate before moving onto the next page.</p>

<p>I want to prevent the user from progressing by calling the Validate() method on every child control on the page and and stopping navigation if any of them fail.</p>

<p>The problem is that the Validate() method on every child control is a private method so I can't access it directly. Can anyone give me some advice on how to get a result from the Validate() method on a TextBox (For example) using Reflection?</p>

<p>Many thanks!</p>

<p><strong>Edit: Sorry - should have specified, this is Windows Forms, .Net 2.0</strong></p>

If you are talking asp.net you can set the ValidationGroup attribute on the control then call
```
this.Validate("GroupName")
```
on the page for the group you need to validate.
Forget the group and just call
```
Validate()
```
if you need to validate the whole page.