How do I use another class

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Cub71

    #1

    How do I use another class

    I have downloaded some code that i need, but I do not know how to
    make
    use of it in another project.

    When i unzipped it, it looks like a full 'project'-folder from Visual
    Studio 2005 with a sln-file, a dll-file, a csproj-file a couple of
    cs-
    files, a csproj.user-file, sou-file and the bin and obj-folders.


    But when i try to run it, I get: "A project with an output type of
    class library cannot be started directly.


    When I try to add a Windows Form to the project, I get a red screen:
    "The designer could not be shown for this file because none of the
    classes within it can be designed. The designer inspected the
    following classes in the file: Form1 --- The base class
    'foxtrot.xray.F orm' cannot be designed. "


    What do I do?

  • PS

    #2
    Re: How do I use another class


    "Cub71" <bjornbj@gmail. comwrote in message
    news:1173044868 .558485.160500@ 30g2000cwc.goog legroups.com...
    >I have downloaded some code that i need, but I do not know how to
    make
    use of it in another project.
    >
    When i unzipped it, it looks like a full 'project'-folder from Visual
    Studio 2005 with a sln-file, a dll-file, a csproj-file a couple of
    cs-
    files, a csproj.user-file, sou-file and the bin and obj-folders.
    >
    Sounds like you have a class library and the source code was supplied. Most
    probably you just want to add a reference to the already created dll from
    YOUR projects and not touch that code base at all. You would add a reference
    to the "Release" build as this is the dll that is going to be supplied along
    with your application. If you are planning to modify that code base then you
    would add that project to your existing solution and from other projects in
    the same solution you add a reference to the project.

    PS
    >
    But when i try to run it, I get: "A project with an output type of
    class library cannot be started directly.
    >
    >
    When I try to add a Windows Form to the project, I get a red screen:
    "The designer could not be shown for this file because none of the
    classes within it can be designed. The designer inspected the
    following classes in the file: Form1 --- The base class
    'foxtrot.xray.F orm' cannot be designed. "
    >
    >
    What do I do?
    >

    Comment

    Working...