Re: common custom classes

From: Tony (tony_at_Wright_nospam_one.co.uk)
Date: 12/06/04


Date: Mon, 06 Dec 2004 08:23:56 GMT

On Sun, 05 Dec 2004 09:03:04 -0800, John M Deal wrote:

> If the file containing the common classes is in the same project but has a
> different namespace you can simply put a using (C#) or Imports(VB.Net)
> statement at the top of the code behind class:
>
> using The.Other.Namespace; //This is for C#
>
> or
>
> Imports The.Other.Namespace 'This is for VB.Net
>
> If the file containing the other classes is in another project/assembly,
> you'll also need to set a reference to the DLL that contains the class.
> Hope that helps.

Thanks for the reply, I am programming in VB.net using a text editor, do I
absolutely need to compile my common classes into a dll or is there a way
of adding a reference/path to a source file? if so what is the syntax?

Tony



Relevant Pages

  • RE: Gets confused with references
    ... the source file level. ... One of them is the Addin dll, which will reference to the others. ...
    (microsoft.public.vsnet.general)
  • Re: How to reference a dll from asmx?
    ... I am able to reference the code as xxx.vb source file, but when I compile the code into a DLL and reference as a dll, then the ASMX fails to compile because the referenced class is not found. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • VB FAQs (Interview Questions) lot lot
    ... Consider two objects, A and B. A holds a reference to B, ... Why do so many example programs not use the DLL name ... Private Declare Function SendMessage Lib "user32" ... Private Const BUFFER_LENGTH As Long = 255 ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Sharing Code
    ... What I found would happen is that when the device dll was built visual ... In the desktop project when you add a reference to the dll, ... > projects, one smart device and one desktop, but they're in the same ... > The 2 form projects have references to this class library projects. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Namespaces - broad question
    ... Reference the Class Library in your Page, ... > aspx pages that I know I want utilize a specific function within, ... > have the same codebehind page), how can I reference this function. ... >> A .Net assembly is a compiled DLL. ...
    (microsoft.public.dotnet.framework.aspnet)