Article ID: 192169
Article Last Modified on 11/18/2003
Public Sub ShowIt()
Dim MyForm As Form1
' Create new instance of the form
Set MyForm = New Form1
' Show the form as modal
MyForm.Show vbModal
' Unload the form
Unload MyForm
' Clear out form reference
Set MyForm = Nothing
End Sub
Private Sub Command1_Click()
Dim MyClass As DLLSVR.Class1
' Create instance of the class
Set MyClass = New DLLSVR.Class1
' Call method of the class
MyClass.ShowIt
' Get rid of class reference
Set MyClass = Nothing
End Sub
Additional query words: kbDSupport kbDSD kbVBp kbVBp500bug kbPropSheet
Keywords: kbbug kbfix KB192169