Form.Close should be the answer as going by Microsoft Form.Close disposes the form as well if the form Modeless .
One more advantage you get from this method is from the events that are associated with the form
You can prevent the closing of a form at run time by handling the Closing event and setting the
Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
If MessageBox.Show("Form is closing", "Form Close", MessageBoxButtons.YesNo, MessageBoxIcon.Hand) = Windows.Forms.DialogResult.No Then
e.Cancel = True
End If
End Sub
The above prevents the form being closed
When the form is opened as Modal form (using Showdialog) you can dispose the form explicitly
RSS Feeds Submission Directory