O
ORC
I have made a user control that Inherites a TextBox but my problem is that
the OnValidate event is missing in CF. I have tried to make a workaround to
this by overrideing the lostfocus event and in that i have turned focus back
to the TextBox if the user has entered a wrong value. But but ... If the
user has entered a wrong value and press close form(dialog) the on focus is
still done but the form also closes leaving the wrong value in the textbox -
how should I cancel the form close in such a case???
Thanks,
Ole
the OnValidate event is missing in CF. I have tried to make a workaround to
this by overrideing the lostfocus event and in that i have turned focus back
to the TextBox if the user has entered a wrong value. But but ... If the
user has entered a wrong value and press close form(dialog) the on focus is
still done but the form also closes leaving the wrong value in the textbox -
how should I cancel the form close in such a case???
Thanks,
Ole