Opening a .NET created Window form in VB 6 using late binding. I want to hide that form using some other application throught Win 32 API [using ShowWindow API]. But while HIding form is geeting closed.
To stop the closing event, we called e.cancel=true but it is not able to stop the closing event of the form.
To Open a .NET Window Form:
Public a As Object
Private Sub Command1_Click()
Set a = CreateObject("WindowsFormsApplication1.Form1")
a.Text = CStr(a.Handle)
To Hide the form using other VB6 application following API has been used:
Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long