Support for Office resident ActiveX Controls in VS2008?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?U2llZ2ZyaWVkIEhlaW50emU=?=

    Support for Office resident ActiveX Controls in VS2008?

    Previously I could write (supported) ActiveX controls for IE only. Has this
    changed with VS2008? Does office support ActiveX controls written in VS2008?

    What about older versions of office: will they support controls written in
    VS2008?

    Thanks,
    Siegfried
  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Support for Office resident ActiveX Controls in VS2008?

    Siegfried,

    The Microsoft Interop Forms Toolkit, which might give you what you want
    (as it supports hosting a .NET control in a VB6 form, and this is done
    through ActiveX):




    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "Siegfried Heintze" <SiegfriedHeint ze@discussions. microsoft.comwr ote in
    message news:FDF257C4-94BA-4D68-ACBE-84F8C5338B9C@mi crosoft.com...
    Previously I could write (supported) ActiveX controls for IE only. Has
    this
    changed with VS2008? Does office support ActiveX controls written in
    VS2008?
    >
    What about older versions of office: will they support controls written in
    VS2008?
    >
    Thanks,
    Siegfried

    Comment

    • Siegfried Heintze

      #3
      Re: Support for Office resident ActiveX Controls in VS2008?

      Please forgive me but I don't see the connection between support for ActiveX
      controls in VB6 and support for ActiveX controls in Microsoft Office. Are
      you saying that since they are supported in VB6 they are also supported in
      Microsoft Office 2007 and earlier?

      thanks,
      Siegfried


      Comment

      • Willy Denoyette [MVP]

        #4
        Re: Support for Office resident ActiveX Controls in VS2008?

        "Siegfried Heintze" <siegfried@hein tze.comwrote in message
        news:PPqdnV8_oP aYlFzanZ2dnUVZ_ jednZ2d@comcast .com...
        Please forgive me but I don't see the connection between support for
        ActiveX controls in VB6 and support for ActiveX controls in Microsoft
        Office. Are you saying that since they are supported in VB6 they are also
        supported in Microsoft Office 2007 and earlier?
        >
        thanks,
        Siegfried
        >

        No, Interop UserControls cannot be hosted in containers other the VB6 Forms.
        The only supported host for ".NET user controls" is still IE.

        Willy.



        Comment

        • =?Utf-8?B?U2llZ2ZyaWVkIEhlaW50emU=?=

          #5
          Re: Support for Office resident ActiveX Controls in VS2008?

          So back to my original question: can anyone tell me about writting MSOffice
          resident ActiveX controls in C#/VS2008. Is it supported?
          Thanks,
          Siegfried

          Comment

          • Willy Denoyette [MVP]

            #6
            Re: Support for Office resident ActiveX Controls in VS2008?

            "Siegfried Heintze" <SiegfriedHeint ze@discussions. microsoft.comwr ote in
            message news:A36A58BF-FB55-49E2-9034-A19AFEB9D213@mi crosoft.com...
            So back to my original question: can anyone tell me about writting
            MSOffice
            resident ActiveX controls in C#/VS2008. Is it supported?
            Thanks,
            Siegfried


            This has nothing to do with the Version of VS, you simply can't author
            ActiveX controls using any of the managed languages, if you need to author
            AX controls ,your only option is to use an unmanaged tool like VB6, C++,
            Delphi etc...
            You can author *user controls* in C# (and any of the other managed
            languages), but these are no ActiveX controls. The only "supported" host for
            these type of controls is IE.

            Willy.





            Comment

            • Alvin Bruney [ASP.NET MVP]

              #7
              Re: Support for Office resident ActiveX Controls in VS2008?

              As Willy says, the only way forward is managed user controls. Interestingly,
              the browser will render it as an 'ActiveX' control but it will run in a
              managed sandbox which brings other implications such as security yada yada.
              See this link for more info


              --

              Regards,
              Alvin Bruney [MVP ASP.NET]

              [Shameless Author plug]
              The O.W.C. Black Book, 2nd Edition
              Exclusively on www.lulu.com/owc $19.99
              -------------------------------------------------------



              "Willy Denoyette [MVP]" <willy.denoyett e@telenet.bewro te in message
              news:%236tIFUHe IHA.4260@TK2MSF TNGP05.phx.gbl. ..
              "Siegfried Heintze" <SiegfriedHeint ze@discussions. microsoft.comwr ote in
              message news:A36A58BF-FB55-49E2-9034-A19AFEB9D213@mi crosoft.com...
              >So back to my original question: can anyone tell me about writting
              >MSOffice
              >resident ActiveX controls in C#/VS2008. Is it supported?
              >Thanks,
              >Siegfried
              >
              >
              >
              This has nothing to do with the Version of VS, you simply can't author
              ActiveX controls using any of the managed languages, if you need to author
              AX controls ,your only option is to use an unmanaged tool like VB6, C++,
              Delphi etc...
              You can author *user controls* in C# (and any of the other managed
              languages), but these are no ActiveX controls. The only "supported" host
              for these type of controls is IE.
              >
              Willy.
              >
              >
              >
              >
              >

              Comment

              Working...