本帖最后由 realvictory 于 2010-10-26 19:34:28 编辑

解决方案 »

  1.   

    this关键字
    引用类的当前实例,也包括继承而来的方法
    this()//调用无参构造函数
      

  2.   

    表示执行此构造函数时,也要调用默认构造函数:
    public ChannelInfoViewForm()
      {
      InitializeComponent();
      }
      

  3.   

    this()调用无参构造函数 public ChannelInfoViewForm()
      {
         InitializeComponent();
      } public ChannelInfoViewForm(FeedBase feed):this()
      {
         this.txtDisplayName.Text = feed.DisplayName;
         ...
      }如上在说 调用有参构造函数ChannelInfoViewForm(FeedBase feed) 
    在方法中实现 this.txtDisplayName.Text = feed.DisplayName;
    之前会通过this调用无参构造函数ChannelInfoViewForm()
    在其中实现InitializeComponent();