John
If you don't want the validation events to prevent the form from closing
then in the form's FormClosing event use:
e.Cancel = False
Kerry Moorman
If i recall correctly this has been discussed before, you need to use
that code in your form:
' ----Begin----
Public Class Form1
Private Const CP_NOCLOSE_BUTTON As Integer = 512
Protected Overrides ReadOnly Property CreateParams() As
System.Windows.Forms.CreateParams
Get
Dim noclose As CreateParams
noclose = MyBase.CreateParams
noclose.ClassStyle = CP_NOCLOSE_BUTTON
Return noclose
End Get
End Property
' Codes...
End Class
' ----End-----
Hope this helps,
Onur Güzel