Any other idea?

Thank you.
Code: Select all
if (resultFine) Form1.DialogResult = DialogResult.OK;
Form1.Close();
Code: Select all
this.IsStopped = false;
if (TextBoxControl1.Control.Text=="")
{
MessageBox.Show("Please enter the first sample number");
this.IsStopped = true;
}
else
{
Form1.DialogResult = DialogResult.OK;
labels.Connect();
Form1.Close();
}