C# WinForm编程ListItem命名空间的加入。
最近做C#WinForm编程,需要用到ListBox,其中的每项为ListItem,但是在命名空间中年写入
using System.Web.UI.WebControls; 程序不识别该命名空间,解决方法是将System.Web.dll 添加到引用中即可。默认情况下System.Web.dll 是不添加到引用中的。
C# WinForm编程ListItem命名空间的加入。
最近做C#WinForm编程,需要用到ListBox,其中的每项为ListItem,但是在命名空间中年写入
using System.Web.UI.WebControls; 程序不识别该命名空间,解决方法是将System.Web.dll 添加到引用中即可。默认情况下System.Web.dll 是不添加到引用中的。