I validate - through a delegate - several textbox data when an 'add' button
is clicked. However, when the 'close' button is clicked, I don't want to
validate - I just want to window to close. I know how to override the
validation when the window's 'x' button is clicked with the following:
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
If m.Msg = &H10 Then
needvalidating = False
End If
MyBase.WndProc(m)
End Sub
But I can't figure out what to do with a 'close' button on the screen - the
validation begins before any code inside the close.click, so how can I do
this?
Thanks for any help.
Bernie Yaeger