Re: How does Validation Work in WinForms?

From: Charles Law (blank_at_nowhere.com)
Date: 04/23/04


Date: Fri, 23 Apr 2004 14:48:27 +0100

Hi Cor

It wasn't so much the e.Cancel that I was having trouble with, as the fact
that the event doesn't get called.

If I could get the Validating event to fire I would be laughing.

As you suggest, I could put it all in the Close or Closing event, but then I
would have to test to see which button was clicked as I don't want to
validate if the Cancel button is clicked.

Do I need to set some properties in order to get the Validating event to
fire?

Charles

"Cor Ligthert" <notfirstname@planet.nl> wrote in message
news:e6$QBgTKEHA.2012@TK2MSFTNGP11.phx.gbl...
> Hi Charles,
>
> In the event is an e.cancel it has as I thought to be set in the opposite
> way than you normaly would think.
>
> The same is also in the form close, which is related to that.
>
> Can you find it, because this is no new subject in this newsgroup and when
> you want I will search for you the get it more exact (as I have answered
> those) ?
>
> I think you are clever enough to find it with this information.
>
> Cor
>
>