How can I create ActiveX Object in C# form? - InfoPath Dev
in

InfoPath Dev

How can I create ActiveX Object in C# form?

Last post 06-14-2007 07:16 AM by davidair. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-25-2007 07:08 AM

    • dmitry
    • Not Ranked
    • Joined on 04-24-2007
    • Posts 6

    How can I create ActiveX Object in C# form?

    hi

    How can I create ActiveX Object in C# form when button clicked?

    what referense must I use for ActiveXObject function?

    thanks

  • 06-14-2007 07:16 AM In reply to

    Re: How can I create ActiveX Object in C# form?

    You have to reference an interop assembly that can talk to that ActiveXObject...

    In Visual Studio, click Add Reference and see if the control you want to use is already listed in either the .NET or COM tabs. If it's not you need to use the AxImp.exe that is part of the .NET SDK to generate the interop assembly.

    Once you have the reference added you can new the object the regular C# way.

    Good luck!

    David Airapetyan / Software Services Architect
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.