Dispose Method

This is where you can put any cleanup code for your windows form.
This method is called automatically when you display a modeless windows form (i.e. using .Show)
If you display a modal windows form then you must call this method yourself.


Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean) 
   If disposing Then
      If Not (components Is Nothing) Then
         components.Dispose()
      End If
   End If
   MyBase.Dispose(disposing)

'Insert Code Here >>>>>>>>>>>>>>>>>>>>>>>>

'reset the global reference to the form
'this can also be used to make sure there is only ever once instance of a modeless form
   gfrmMERGEFIELDS = Nothing

End Sub



© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext