| If your VB ActiveX DLL includes a non-modal form, you cannot summon it from a VC++ client if you call the native VB Show method of the form from within the DLL. Instead, use this technique in your exposed interface: Private Declare Function ShowWindow Lib "User32" Alias "ShowWindow" (ByVal hWnd As Long, _ ByVal nCmdShow As Long) As Long Private Const SW_SHOW=5 Public Sub Show() Dim frm As New frmMyForm Call ShowWindow(frm.hWnd,SW_SHOW) End Sub |
Show Non-Modal Forms From ActiveX DLLs |
Express News India | Freelance ecommerce web development India