System.Windows

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

    System.Windows

    Hi People,
    sorry that I will repeat myself, the previous message
    wasn't cleared.

    Here is the error:

    using System;
    using System.Windows. Forms; <------------- ????
    using System.Threadin g;

    When I tried to compile: the compiler gave me errors:

    D:\Oleg\Practic e
    C++\samples\VCS harp\AutoLogout \AutoLogout.cs( 2): The type
    or namespace name 'Windows' does not exist in the class or
    namespace 'System' (are you missing an assembly reference?)

    Does anybody know how can I fix this.

    I am using Visual Studio .NET (version 7)

    Thank you,

    Oleg
  • Andrew Gnenny

    #2
    Re: System.Windows

    Hi,

    To use the classes defined in the System.Windows. Forms namespace you should
    add the reference to assembly named 'System.Windows .Forms.dll' to your
    project.
    --
    Andrew Gnenny
    X-Unity Test Studio

    Bring the power of unit testing to VS .NET IDE


    "Oleg" <bind8@yahoo.co m> wrote in message
    news:082101c38d 50$25126b10$a40 1280a@phx.gbl.. .[color=blue]
    > Hi People,
    > sorry that I will repeat myself, the previous message
    > wasn't cleared.
    >
    > Here is the error:
    >
    > using System;
    > using System.Windows. Forms; <------------- ????
    > using System.Threadin g;
    >
    > When I tried to compile: the compiler gave me errors:
    >
    > D:\Oleg\Practic e
    > C++\samples\VCS harp\AutoLogout \AutoLogout.cs( 2): The type
    > or namespace name 'Windows' does not exist in the class or
    > namespace 'System' (are you missing an assembly reference?)
    >
    > Does anybody know how can I fix this.
    >
    > I am using Visual Studio .NET (version 7)
    >
    > Thank you,
    >
    > Oleg[/color]


    Comment

    • Jon Skeet [C# MVP]

      #3
      Re: System.Windows

      Oleg <bind8@yahoo.co m> wrote:[color=blue]
      > sorry that I will repeat myself, the previous message
      > wasn't cleared.
      >
      > Here is the error:
      >
      > using System;
      > using System.Windows. Forms; <------------- ????
      > using System.Threadin g;
      >
      > When I tried to compile: the compiler gave me errors:
      >
      > D:\Oleg\Practic e
      > C++\samples\VCS harp\AutoLogout \AutoLogout.cs( 2): The type
      > or namespace name 'Windows' does not exist in the class or
      > namespace 'System' (are you missing an assembly reference?)
      >
      > Does anybody know how can I fix this.[/color]

      You need to add a reference to the System.Windows. Forms.dll assembly
      within the project (not in the code itself).

      --
      Jon Skeet - <skeet@pobox.co m>
      Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.

      If replying to the group, please do not mail me too

      Comment

      • Oleg Shnayder

        #4
        Re: System.Windows



        Hello,

        I am really new to VC#.
        Could you please tell me how can I add the reference to assembly named
        'System.Windows .Forms.dll' to my
        project.
        Thank you in advance,

        Oleg


        *** Sent via Developersdex http://www.developersdex.com ***
        Don't just participate in USENET...get rewarded for it!

        Comment

        • Empire City

          #5
          Re: System.Windows

          Open the Solution Explorer, right mouse click on references, pici Add
          Reference, under the .NET tab pick the reference you are looking for.

          "Oleg Shnayder" <bind8@yahoo.co m> wrote in message
          news:uiWArRTkDH A.2528@TK2MSFTN GP12.phx.gbl...[color=blue]
          >
          >
          > Hello,
          >
          > I am really new to VC#.
          > Could you please tell me how can I add the reference to assembly named
          > 'System.Windows .Forms.dll' to my
          > project.
          > Thank you in advance,
          >
          > Oleg
          >
          >
          > *** Sent via Developersdex http://www.developersdex.com ***
          > Don't just participate in USENET...get rewarded for it![/color]


          Comment

          Working...