Read this last line again posted above.... also System.ComponentModel.CancelEventArgs isn't the same as FormClosingEventArgs .. which is part of the System.Windows.Forms namespace...

vb Code:
  1. Public Class mainWindow
  2.  
  3.     Private Sub mainWindow_FormClosing(ByVal sender As Object,
  4.                                        ByVal e As FormClosingEventArgs) Handles Me.FormClosing
  5.         'e (FormClosingEventArgs)
  6.         e.Cancel = True
  7.     End Sub
  8.  
  9.     Private Sub checkTextBoxes()
  10.         ' FormClosingEventArgs ?????
  11.     End Sub
  12.  
  13. End Class

Oh and dont ever use END to close an application.