Control Development

  • Thread starter Thread starter The_Boss
  • Start date Start date
T

The_Boss

I developed a control and a component. My control uses my component. I have
a test application and when I add my control to a form in the test
application, my control's dll is automatically added to my test projects
references list. But I need to add my component's dll to be added to
reference list as well. How can I do this? Thanks.
 
Hello,

The_Boss said:
I developed a control and a component. My control uses my
component. I have a test application and when I add my
control to a form in the test application, my control's dll
is automatically added to my test projects references list.
But I need to add my component's dll to be added to
reference list as well. How can I do this? Thanks.

I think I don't really understand what's your problem. Select the
"References" folder in the project explorer and choose "Add reference..."
from its context menu. There you can add a reference to your "component".

Regards,
Herfried K. Wagner
 
My problem is,
when I add my control to control toolbar and drag drop it to the surface of
a form,
VS IDE automatically adds my controls dll in to the projects references
list. But my control uses an other dll as dependent and VS IDE doesn't add
that dll to references automatically. I should add it manually. I saw some
controls doing this. And I need same thing.
Thanks.
 
Hello,

The_Boss said:
when I add my control to control toolbar and drag drop it to the surface of
a form,
VS IDE automatically adds my controls dll in to the projects references
list. But my control uses an other dll as dependent and VS IDE doesn't add
that dll to references automatically. I should add it manually. I saw some
controls doing this. And I need same thing.

What do you need? Should the reference be added automatically or do you have
problems adding the reference manually?

Regards,
Herfried K. Wagner
 
The reference should be added automatically.

Herfried K. Wagner said:
Hello,



What do you need? Should the reference be added automatically or do you have
problems adding the reference manually?

Regards,
Herfried K. Wagner
 
Hi TB,

It may be that the Controls that you have seen have some Designer-time
code. I guess that they'd handle the Dropped-On-A-Form event (if there is one)
and use a bit of IDE functionality to add a reference to the Project.

Have a read of the help on the IDE Object Model and Add-Ins, and on
design-time programming.

I've never done it, which is why the details are all so vague.

Regards,
Fergus
 
Back
Top