Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
400 Form already displayed; can't show modally
Collapse the table of content
Expand the table of content

Visual Basic for Applications Reference

Visual Studio 6.0

Form already displayed; can't show modally (Error 400)

Specifics

You can't use the Show method to display a visible form as modal. 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.

Show:
© 2015 Microsoft