public class1()
{    public string Code
    {
get
{
           return this.txtCustCode.Text;
}
    }   private void ClearControlValue()
   {
       this.txtCustCode.Text="";
   }
}
public class2()
{
    private void sCodeValue()
    {
        class1 obj=new class1();
        string aa=obj.Code.ToString();
        MessageBox(aa,"txtTextCode的值");
    }
}class2中还有一个Button按钮,当在class1中执行完ClearControlValue()方法后,如果在txtCustCode中填入新的值,单击Button后,MessageBox显示aa的值为空,如何让MessageBox中显示的值为刚输入的新值。
例如在执行过ClearControlValue()后,在txtCustCode中输入CSDN,这个时候MessageBox显示的值为CSDN请问该如何实现,谢谢!