Custom Validation Message in a Property Grid

T

technical0

Hi,
I have a property grid used for editing the members of a class of
which one is an int. If this int value is deleted in the property grid
then I get a default error dialog box that says:
"Property is not valid." [Details] "is not a valid value for Int32."
I would like to be able to override this dialog box with something
more user friendly, such as a dialog box that says:
"Please enter a value for ..."
Does anyone know how to do this?
Thanks,
Chris.
 
S

Stoitcho Goutsev \(100\)

Hi

As far as I can see the dialog box is created internaly in the property grid
and cannot be replaced.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top