在这个控件的PAGE_LOAD方法中加如TextBox.Text="";

解决方案 »

  1.   

    create a custom ControlDesigner, see the solution provide by Felix Wu from Microsoft:http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=sOnAl49JCHA.1600%40cpmsftngxa08
    [Designer(typeof(MyTextBox.InheritedTextBoxDesigner))] 
    public class MyTextBox : System.Windows.Forms.TextBox   
    {
          ...
     internal class InheritedTextBoxDesigner: System.Windows.Forms.Design.ControlDesigner
     {
      public  override void  OnSetComponentDefaults()
      {
       base.OnSetComponentDefaults();
       base.Control.Text  = "MyDefaultText";
      }
     }   ...
    }
      

  2.   

    其实在Form_Load事件或ParentChange事件或Paint事件里做个变量来判断一下就可以了,又简单又明了!*^_^*