For Programmers: Free Programming Magazines  


Home > Archive > Visual Studio > July 2004 > What's the difference in adding a reference?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author What's the difference in adding a reference?
Bruce W.1

2004-07-19, 8:58 pm

What's the difference between adding a project reference in the Solution
Explorer and just putting a using (C#) or Imports (VB) at the top of the
code file?

Thanks for your help.
Bob M.

2004-07-20, 3:57 am

Even though you have a reference to an object,
let's say "myproject2.dll" in the reference, to access
its contents in a form, you must "imports myproject2"
and it must first be in the references. It needs to be in
both in other words.

--
Bob M.


"Bruce W.1" <bw@noDirectEmail.com> wrote in message
news:%23YdYxWdbEHA.3012@tk2msftngp13.phx.gbl...
> What's the difference between adding a project reference in the Solution
> Explorer and just putting a using (C#) or Imports (VB) at the top of the
> code file?
>
> Thanks for your help.



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com