winfrom添加信息后的自动清空所有

重新设置所有文本框为空就行、

 

 

 if (flass)
                {
                    MessageBox.Show("添加成功", "提示信息");
                    this.tbSName.Text = "";
                    this.tbSAddress.Text="";
                    this.tbSTel.Text="";
                    this.tbState.Text = "";
                    this.tbClass.Text = "";


                }
                else
                {
                    MessageBox.Show("添加失败");
                }

 

posted @ 2022-06-16 22:24  花是花树是树  阅读(39)  评论(0)    收藏  举报