D
Dennis Burdett
I have a pretty complex control which use to be a C# windows form that I am
trying to make into a control that can be dragged onto a VB6 form.
I was able to make it into a com class that I could then go to VB6 and add
the reference and call the object there without any problems.
When I try to make it into a UserControl, I get it to build and it registers
itself during the build with no errors BUT I can not add the dll to the vb6
project. I can add the dll to another C# project and all the form
(usercontrol) works as it should with the grid and toolbar buttons doing
their thing as planned.
below is the top section of the class diff.
The contructor doesn't do anything but the InitializeComponent() call.
thanks for any assistance.
Dennis
using interop = System.Runtime.InteropServices;
namespace TASAMS
{
[interop.ProgId("TimeLineControl"),
interop.Guid("124B9B07-35A7-4c72-B04B-3A04E42F1E07"),
interop.ClassInterface(interop.ClassInterfaceType.AutoDispatch),
interop.ComVisible(true)]
public class TimeLineControl : System.Windows.Forms.UserControl
{
....
}
trying to make into a control that can be dragged onto a VB6 form.
I was able to make it into a com class that I could then go to VB6 and add
the reference and call the object there without any problems.
When I try to make it into a UserControl, I get it to build and it registers
itself during the build with no errors BUT I can not add the dll to the vb6
project. I can add the dll to another C# project and all the form
(usercontrol) works as it should with the grid and toolbar buttons doing
their thing as planned.
below is the top section of the class diff.
The contructor doesn't do anything but the InitializeComponent() call.
thanks for any assistance.
Dennis
using interop = System.Runtime.InteropServices;
namespace TASAMS
{
[interop.ProgId("TimeLineControl"),
interop.Guid("124B9B07-35A7-4c72-B04B-3A04E42F1E07"),
interop.ClassInterface(interop.ClassInterfaceType.AutoDispatch),
interop.ComVisible(true)]
public class TimeLineControl : System.Windows.Forms.UserControl
{
....
}