R
Rich P
I used to build little activeX/ocx controls in VB6 for Excel, Access
like a VB6 form with a textbox for some purpose (probably just testing).
I would compile these as .ocx files. In .net I have created a class
library control (no gui controls) that I would compile into a dll/tlb,
and using an interface (and making it com visible) in the .Net control I
could make a reference to this non gui .Net control in Access/Excel VBA
and communicate between the control and the client/subscriber (whatever
Access/Excel is supposed to be here).
Now I need to add a form to an ActiveX control to display some non
character data results on - like a canvas. I would be using this
control in Excel - basically minnie custom graphs (which there would be
lots of). Ideally, I would like to create this activeX control in C#,
but I have not had any luck using the ways that I am familiar with -
like a Windows Form Control Library project. Excel complains when I try
to add my control as an addin that it does not contain an automation
server, and if I try to make a reference to the dll - Excel says it is
not able to create this reference.
So before I dig up my old VB6 CD, is it possible to create an ActiveX
control for Excel of the type I describe in C#(2008, or 2005, 2003 I
have em all)? I need a control with a form/background where I pass data
to the control from Excel and then draw dots on. Any articles on
creating a com winform activeX control would be great.
Thanks,
Rich
like a VB6 form with a textbox for some purpose (probably just testing).
I would compile these as .ocx files. In .net I have created a class
library control (no gui controls) that I would compile into a dll/tlb,
and using an interface (and making it com visible) in the .Net control I
could make a reference to this non gui .Net control in Access/Excel VBA
and communicate between the control and the client/subscriber (whatever
Access/Excel is supposed to be here).
Now I need to add a form to an ActiveX control to display some non
character data results on - like a canvas. I would be using this
control in Excel - basically minnie custom graphs (which there would be
lots of). Ideally, I would like to create this activeX control in C#,
but I have not had any luck using the ways that I am familiar with -
like a Windows Form Control Library project. Excel complains when I try
to add my control as an addin that it does not contain an automation
server, and if I try to make a reference to the dll - Excel says it is
not able to create this reference.
So before I dig up my old VB6 CD, is it possible to create an ActiveX
control for Excel of the type I describe in C#(2008, or 2005, 2003 I
have em all)? I need a control with a form/background where I pass data
to the control from Excel and then draw dots on. Any articles on
creating a com winform activeX control would be great.
Thanks,
Rich