在添加工具箱项中发现出现的是2个名称的控件(分别是xp,Tool).------------------------------------------------------请问怎样才能在添加工具箱项中只显示一个名字(比如bear),而添加后在工具箱中能显示多个控件了(xp,Tool)
解决方案 »
- 动态设置报表中的文本框内容
- 开机运行,在Form1_Load中读取XML初始化程序会有问题?
- 窗体背景加图片的问题!!高手指点一下啊
- 控制台程序怎么实现登陆功能?
- 想用HttpWebResponse作http下载程序,但是发现下载数据会出错,设定中断就没错,为什么?
- 在C#中,如何获取一台机器的的工作组名称是什么?
- 当传递具有新行的 DataRow 集合时,Update 要求有效的 InsertCommand。
- 求大神帮改成asp.net(C#)的代码
- 怎么读出oracle数据库中clob字段的内容 ?
- 帮助试试网页,看看能不能访问?
- 急求助:网站被黑,主页被修改,可能是通过什么方式攻击的,怎么防范
- 大虾,请,请,多,多指点(那里有C#的教材下载,我以前是asp.net的vb,而现在要学c#,不知道该看那些教材,)
{
/// <summary>
/// UserControl1 的摘要说明。
/// </summary>
public class bear: System.Windows.Forms.UserControl
{
public class xp : System.Windows.Forms.UserControl
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null; public xp()
{
// 该调用是 Windows.Forms 窗体设计器所必需的。
InitializeComponent(); // TODO: 在 InitComponent 调用后添加任何初始化 } /// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if( components != null )
components.Dispose();
}
base.Dispose( disposing );
} #region 组件设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器
/// 修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
components = new System.ComponentModel.Container();
}
#endregion
}
public class Tool: System.Windows.Forms.UserControl
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null; public Tool()
{
// 该调用是 Windows.Forms 窗体设计器所必需的。
InitializeComponent(); // TODO: 在 InitComponent 调用后添加任何初始化 } /// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if( components != null )
components.Dispose();
}
base.Dispose( disposing );
} #region 组件设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器
/// 修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
components = new System.ComponentModel.Container();
}
#endregion
}
}
}