Windows Vista Forums

In any project, Can't we refer classes directly, (without addingphysically in the project)?

  1. #1


    Rachana Guest

    In any project, Can't we refer classes directly, (without addingphysically in the project)?

    Hi !
    I am new to .net. Presently, Working in vb.net 1.1
    i have Created one class project and one client project (2 separate
    solutions)
    In the client project , if I try to ' add reference' for class,
    nothing is shown under project bar.
    I have to cumpulsorily add class project into my client project (add
    existing class), then only it shows class name under reference-
    project
    bar.
    does it mean every time I have to add required no. of classes
    physically, in any project? Then again give the reference of each?
    Can't it directly refered without adding physically?

    In Class project, I have used 'build Solution' from menu bar.
    In Client project, I tried 'browse' option,too.
    But it does not show class name untill physically added. ( file type:
    component files)

    What is the way to generate DLL?

    Thanks,
    Regards,
    Rachana

      My System SpecsSystem Spec

  2. #2


    EagleRed Guest

    RE: In any project, Can't we refer classes directly, (without adding p

    You need to set a reference to the assembly containing the class. This will
    allow you to set up a namespace in your client project and then you can
    reference classes in the referenced assembly.

    Eagle

    "Rachana" wrote:

    > Hi !
    > I am new to .net. Presently, Working in vb.net 1.1
    > i have Created one class project and one client project (2 separate
    > solutions)
    > In the client project , if I try to ' add reference' for class,
    > nothing is shown under project bar.
    > I have to cumpulsorily add class project into my client project (add
    > existing class), then only it shows class name under reference-
    > project
    > bar.
    > does it mean every time I have to add required no. of classes
    > physically, in any project? Then again give the reference of each?
    > Can't it directly refered without adding physically?
    >
    > In Class project, I have used 'build Solution' from menu bar.
    > In Client project, I tried 'browse' option,too.
    > But it does not show class name untill physically added. ( file type:
    > component files)
    >
    > What is the way to generate DLL?
    >
    > Thanks,
    > Regards,
    > Rachana
    >

      My System SpecsSystem Spec

In any project, Can't we refer classes directly, (without addingphysically in the project)?

Similar Threads
Thread Forum
Project Explorer
Suddenly the Project Explorer windows in VB6 has disappeared from my existing project and any other that I open. I have searched the Web and find...
Vista General
Project Templates
I tried asking these questions in the Windows Forms group but have had no response so I will try again in these 2 groups. I am using VS2008. I...
.NET General
web.config vs. My Project
When creating a new VB Web Application Project with VS2008, there are several settings (compiler settings, option strict, etc) that appear both in...
.NET General
large project
I have inherited a 5.5 hour WMM project. Is there a way to split this up into smaller projects so that I can publish it? -- Thanks, Dale
Vista music pictures video
Project torque
http://project-torque.aeriagames.com/ free to download and play online racing game, not bad as well, installs and plays great on both Vista 64 &...
Vista Games
Microsoft Advances Its Project Management Technology and the Project Management Profession
Microsoft Advances Its Project Management Technology and the Project Management Profession Microsoft Learning launches new Microsoft Office Project...
Vista News