BUG: Error 405: "Unable to Show Modal Form Within this Context"ID: Q184200
|
When opening a form from an ActiveX DLL, you may receive the following
error:
Unable to show modal form within this context."
This error occurs when all of the following are true:
Set the BorderStyle of the form in the client application to Fixed Single, and remove the Min and Max buttons from the form. This results in the form behaving in the same manner as a form with a Dialog BorderStyle.
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.
Option Explicit
Public Sub ShowDialog()
Form2.Show 1
End Sub
Option Explicit
Private Sub Form_Click()
Unload Me
End Sub
Option Explicit
Private Sub Command1_Click()
Dim x As New SrvDialog.Class1
x.ShowDialog
Set x = Nothing
End Sub
Additional query words:
kbVBp500bug kbVBp kbDSupport kbdsd kbForms kbVBp600bug kbDLL kbActiveX
kbServer
Keywords :
Version :
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: June 15, 1999