|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
COM interopI 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 IS shwon for all VB forms as modal, but for c# forms (1) they are 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? -- Big thank you for your help.
Show quote
Hide quote
"Ade" <ade@nospam.nospam> wrote in message You need to post this in a dotNet newsgroup. This newsgroup is for classicnews:86ADC568-AB6A-47BD-A873-4675DC3A8B8A@microsoft.com... > 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 IS shwon for all VB forms as > modal, but for c# forms (1) they are 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? > > -- > Big thank you for your help. VB (VB6 and lower). Try... news://msnews.microsoft.com/ microsoft.public.dotnet.general microsoft.public.dotnet.languages.vb microsoft.public.dotnet.framework.interop microsoft.public.vsnet.general microsoft.public.vstudio.general microsoft.public.vstudio.setup |
|||||||||||||||||||||||