G
Guest
I have a .net class that displays a .net form (1), when the user clicks a
button on the form (1) an event is fired that is captured by a wrapping COM
dll. The COM DLL instantiates another COM Class that shows a form (2). The
wrapping COM object is written in VB classic and the called COM object that
shows the form (2) should show it as application Modal ie myform.Show
vbModal. The thing is it does not, THE FORM(2) IS shwon for all VB forms as
modal, but for .net forms the form(1) is left free.
I thought I may be able to set the parent form when showing, I can get the
form (1) hwnd, but I need a VB form object to pass to COM form (2) .show
method. Any ideas?
Or is there any other way around this?
button on the form (1) an event is fired that is captured by a wrapping COM
dll. The COM DLL instantiates another COM Class that shows a form (2). The
wrapping COM object is written in VB classic and the called COM object that
shows the form (2) should show it as application Modal ie myform.Show
vbModal. The thing is it does not, THE FORM(2) IS shwon for all VB forms as
modal, but for .net forms the form(1) is left free.
I thought I may be able to set the parent form when showing, I can get the
form (1) hwnd, but I need a VB form object to pass to COM form (2) .show
method. Any ideas?
Or is there any other way around this?