在添加工具箱项中发现出现的是2个名称的控件(分别是xp,Tool).------------------------------------------------------请问怎样才能在添加工具箱项中只显示一个名字(比如bear),而添加后在工具箱中能显示多个控件了(xp,Tool)
解决方案 »
- 关于网页自动点击问题
- 模块外部关联功能设计 请教
- 改变dataGridView中comboBox的值
- 有谁能讲解下C#用向导生成的程序吗》?
- 求助最新手级别的问题!!!
- DataGrid修改数据
- 就是在table 中绑定 DataGrid?我需要步骤?最好写详细些,我是新手,谢谢!
- 求人帮忙完成测试报告
- 新手求助、怎样把视频文件导入到自已的c#项目中???求大神指导!!!非常感谢!!!
- c#怎么把Bitmap类型数据传送给c++的dll?
- 急求助:网站被黑,主页被修改,可能是通过什么方式攻击的,怎么防范
- 大虾,请,请,多,多指点(那里有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
}
}
}