OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Thread Tools Search this Thread Display Modes
Old 25-11-2011, 04:41
lebaron lebaron is offline
Junior Member
Join Date: Nov 2007
Posts: 20
Default Create X5 Addin with VS2010 C#

Hi everybody !

I'm trying to convert all my custom tools' for X4, writing in C# with VS2005 (I'm using the COM method !), to X5 Addin !

With VSTA(integrated in X5) is now possible to simplify the connections of the custom tools' and X5(draw or paint).

I cant' to transfer my all code to the VSTA editor in X5. It is not possible for me (very big project !!)

The only solution for me is to add the ADDIN code in my project... But how to ? (adding dll in project references ?, add a specific entry point ?, add a specific code?,Setup prcess for distributing my addin? )

Thanks in advance
Reply With Quote
Old 25-11-2011, 14:40
shelbym's Avatar
shelbym shelbym is offline
Senior Member
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,790
Blog Entries: 13
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default Vsta

I would not use VSTA, it is not ready from Prime time as we say. As for the add-in, the only ones I have seen work are all written in C++, so I am not sure that approach would help either.

Reply With Quote
Old 28-11-2011, 05:29
lebaron lebaron is offline
Junior Member
Join Date: Nov 2007
Posts: 20

Hi Shelby !

thnaks' but is not my question !

I want to know, houw to using or re-wrinting the VSTA auto generated code, in mi C# code with VS(2010).

My actual tool using the COM Interop solution:
1°) I check the otion "Register as COM Interop" in my project options.
2°) I'm using the code :
namespace AboutBox
    /// <summary>
    /// Interface AX de Abot Box
    /// </summary>
    public interface AxAboutBox
        CorelDRAW.Application CorelAppInst { get; set; }
        int LanguageInt { get; set; }
        int Launch_About();

    public class AboutBox : AxAboutBox, IDisposable
3°) in Draw, from a GMS, i call the function exposed by the COM Interop.

So, but now, i want to replace this code by the VSTA main class (the auto generated code !). it is probably possible, but how to ?
Code generated by VSTA:
namespace Addin1
    [System.AddIn.AddIn("My Add-in", Version = "1.0", Publisher = "", Description = "")]
    public partial class Main
        private void Main_Startup(object sender, EventArgs e)


        private void Main_Shutdown(object sender, EventArgs e)


        #region VSTA generated code
        private Application app = null;
        private void InternalStartup()
            this.Startup += new System.EventHandler(Main_Startup);
            this.Shutdown += new System.EventHandler(Main_Shutdown);
            app = (Application)this.Host;

If you prefer:
i'want to using the System.addin in my VS project, to writing the addin for DRAW or PAINT in VS 2010 !
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rudimentary query regarding ActiveX Addin sureshkumarp General 0 20-07-2005 11:59
How can I handle a event of GlobalDocument In a COM AddIn? zhang.t CorelDRAW/Corel DESIGNER VBA 2 17-06-2004 23:03
Execute addin andrej CorelDRAW/Corel DESIGNER VBA 12 10-05-2004 16:23
How can i make a CorelDraw addin under Visual C++ andrej CorelDRAW/Corel DESIGNER VBA 2 15-04-2003 10:40
CorelDRAW 11 and AddIn’s reanan CorelDRAW/Corel DESIGNER VBA 2 03-12-2002 15:21

All times are GMT -5. The time now is 00:03.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com