会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
且行且歌
http://www.cnblogs.com
控制台程序--添加引用
ConsoleApplication
using
System;
using
System.Web;
using
System.Web.UI;
using
System.Web.UI.WebControls;
using
System.Collections.Generic;
using
System.Text;
namespace
MultipleControl
{
class
Program
{
static
void
Main(
string
[] args)
{
}
}
/**/
///
<summary>
///
新建的控制台程序最初找不到System.Web.UI的UI是因为:
///
在References文件夹内默认没有System.Web项,在项目上右键Add Reference
///
.NET 选项卡中选择System.Web即可
///
</summary>
public
class
CompositeControl : Control
{
/**/
///
<summary>
///
因为是控制台程序,不可能有Label型控件的,也没有this指针
///
</summary>
Label label1
=
new
Label();
//
label1
}
}
posted on
2007-07-20 18:38
simhare
阅读(
561
) 评论(
0
)
收藏
举报
刷新页面
返回顶部
导航
博客园
首页
新随笔
联系
订阅
管理
公告