PC Review


Reply
Thread Tools Rate Thread

Control Development

 
 
The_Boss
Guest
Posts: n/a
 
      31st Aug 2003
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.


 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      31st Aug 2003
Hello,

"The_Boss" <(E-Mail Removed)> schrieb:
> 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
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet


 
Reply With Quote
 
The_Boss
Guest
Posts: n/a
 
      31st Aug 2003
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.

"Herfried K. Wagner [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> "The_Boss" <(E-Mail Removed)> schrieb:
> > 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
> --
> MVP · VB Classic, VB .NET
> http://www.mvps.org/dotnet
>
>



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      31st Aug 2003
Hello,

"The_Boss" <(E-Mail Removed)> schrieb:
> 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
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet


 
Reply With Quote
 
The_Boss
Guest
Posts: n/a
 
      31st Aug 2003
The reference should be added automatically.

"Herfried K. Wagner [MVP]" <(E-Mail Removed)> wrote in message
news:erDxa8$(E-Mail Removed)...
> Hello,
>
> "The_Boss" <(E-Mail Removed)> schrieb:
> > 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
> --
> MVP · VB Classic, VB .NET
> http://www.mvps.org/dotnet
>
>



 
Reply With Quote
 
Fergus Cooney
Guest
Posts: n/a
 
      31st Aug 2003
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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Control development Ben Voigt Microsoft C# .NET 0 10th Jan 2007 09:34 PM
Control Development =?Utf-8?B?U2FuZGVlcA==?= Microsoft Dot NET Framework Forms 1 12th Apr 2004 02:46 PM
Re: Development best practices and knowing when to exercise control over development Nuno Borges Microsoft ASP .NET 0 6th Aug 2003 11:20 PM
Re: Development best practices and knowing when to exercise control over development Kevin Spencer Microsoft ASP .NET 2 6th Aug 2003 10:33 PM
Re: Development best practices and knowing when to exercise control over development John Saunders Microsoft ASP .NET 0 6th Aug 2003 08:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:32 AM.