开发者

ASP NET C# System.Windows.Form does not exist in the class or namespace 'System'

开发者 https://www.devze.com 2023-02-05 08:58 出处:网络
ASP NET C#using System.Windows.Form namespace producce error开发者_开发百科 \"The type or namespace name \'Windows\' does not exist in the class or namespace \'System\' (are you missing an assembly re

ASP NET C# using System.Windows.Form namespace producce error开发者_开发百科 "The type or namespace name 'Windows' does not exist in the class or namespace 'System' (are you missing an assembly reference?)".

I test it with WinXP ver 2002 SP3, MS Visual Studio Microsoft Development Enviroment 2002 ver 7, framework 2.0; and with Win7Professional, MS Visual Studio 2008 Express, framework 3.5 (inside Win7?)


Add a reference to System.Windows.Forms in the visual studio by right-clicking the references or project in the solution explorer.

But I could not figure out what it has got to do with ASP.NET?


Are you trying to create web or desktop application? You can't use both within a single project.
If you want to create a new desktop application, you can do it by selecting:

File -> New -> Project -> Visual C# -> Windows - Windows Forms Application

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号