Re: How does Validation Work in WinForms?
From: Charles Law (blank_at_nowhere.com)
Date: 04/23/04
- Next message: Jamie Sutherland: "Please Help - Encryption Problems"
- Previous message: yEaH rIgHt: "Re: Interactive drawn controls (hittest questions)"
- In reply to: Cor Ligthert: "Re: How does Validation Work in WinForms?"
- Next in thread: Cor Ligthert: "Re: How does Validation Work in WinForms?"
- Reply: Cor Ligthert: "Re: How does Validation Work in WinForms?"
- Messages sorted by: [ date ] [ thread ]
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
>
>
- Next message: Jamie Sutherland: "Please Help - Encryption Problems"
- Previous message: yEaH rIgHt: "Re: Interactive drawn controls (hittest questions)"
- In reply to: Cor Ligthert: "Re: How does Validation Work in WinForms?"
- Next in thread: Cor Ligthert: "Re: How does Validation Work in WinForms?"
- Reply: Cor Ligthert: "Re: How does Validation Work in WinForms?"
- Messages sorted by: [ date ] [ thread ]