CodeDocu.com

Project template for an ActiveX control

 

The following is a complete COM Interop project consisting of a Visual Studio 2017 project and a Microsoft Access database and MS Excel file,

which show the integration of the usercontrol as an ActiveX control.

Project template for an ActiveX control

 

You just need to add your own program code to the project and create a custom ActiveX COM Control for Office applications

Project template for an ActiveX control

 

In the code block

Like here

 

    [Guid(ClassId), ClassInterface(ClassInterfaceType.None)]

    [ComSourceInterfaces(typeof(IInteropUserControlEvents))]

    public partial class ComControl : UserControl, IInteropUserControl

    {

..

// Please enter any new code here, below the Interop code

        public void create_Barcode39(string String_to_Encode)

        {

 

 

        }

..

 

 

Paste into MS Access

 

Access> Forms> Entwurf-> ActiveX controls

Project template for an ActiveX control

 

Then the COM control appears

In the Insert ActiveX Control dialog box

axBarcode39.ComControl

Project template for an ActiveX control

 

Looks like here

Project template for an ActiveX control

 

In Microsoft Excel

Developer-> Insert-> ActiveX controls, and then the Other Controls icon 

Project template for an ActiveX control

 

If you find the ActiveX control under Other controls-> axBarcode39.Control

Project template for an ActiveX control

 

In the formula: = Embed ("axBarcode39.ComControl"; "")

Project template for an ActiveX control

 

 

The project was created using the Microsoft Interop Toolset

VB6 Interop UserControl and

Project template for an ActiveX control

 

 

You can find the C # template for the Interop UserControls

[Lnk "http://www.java2s.com/Open-Source/CSharp_Free_Code/UI/Download_Interop_Forms_Toolkit_for_C_.htm" /]

as download link interoptoolkitcs.zip

 

 

 


Software Entwicklung Stuttgart NĂ¼rtingen
Suche Projekte C#, WPF, Windows App,ASP.Net, vb.Net, WinForms, SQL Server, Access, Excel