I am using this function to close existing form and open a new form.
If there is no exixting form, it throws error.
Error :
Target : System.Object
You can use the Application.OpenForms collection.