Visual Basic Reference
Form already displayed; can't show modally (Error 400)
See Also
You cant use the Show method to display a form as modal that is already visible. This error has the following cause and solution:
You tried to use Show, with the style argument set to 1 - vbModal, on an already visible form.
Use either the Unload statement or the Hide method on the form before trying to show it as a modal form.