COM interop

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ade

    #1

    COM interop

    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.
  • Ralph

    #2
    Re: COM interop


    "Ade" <ade@nospam.nos pamwrote in message
    news:86ADC568-AB6A-47BD-A873-4675DC3A8B8A@mi crosoft.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.
    You need to post this in a dotNet newsgroup. This newsgroup is for classic
    VB (VB6 and lower).

    Try...
    news://msnews.microsoft.com/
    microsoft.publi c.dotnet.genera l
    microsoft.publi c.dotnet.langua ges.vb
    microsoft.publi c.dotnet.framew ork.interop
    microsoft.publi c.vsnet.general
    microsoft.publi c.vstudio.gener al
    microsoft.publi c.vstudio.setup



    Comment

    Working...