いくつかのtextBoxがnullではないことを確認するフォームがあります。いずれかが表示されている場合は、メッセージボックスが表示され、テキストボックスがリセットされ、ユーザーが再試行できるようになります。テキストボックスのチェックが間違っていると思います。これどうやってするの?ありがとう。
public void ShowPaths()
{
if (textBox1.Text == null | textBox2.Text == null)
{
MessageBox.Show("Please enter a Project Name and Number");
}
else
{
sm.projNumber = textBox1.Text;
sm.projName = textBox2.Text;
textBox3.Text = sm.Root("s");
textBox4.Text = sm.Root("t");
}
textBox1.ResetText();
textBox2.ResetText();
}