private void WOFocusTimer_Tick(object sender, EventArgs e) { WOFocusTimer.Stop(); WorkOrderEntryTextBox.ForeColor = Color.Black; wo = WorkOrderEntryTextBox.Text; PNEntryTextBox.Focus(); }
/* * //display and error message when we cant display testForm * if (!testForm.display) * { * textBox1.Text = "Cannot find assembly. Please try again."; * //reset for next call to testForm * testForm.display = true; * //close db connection * testForm.dbConn.Close(); * } * //display error when cannot handle size of assembly * if (testForm.sizeError) * { * textBox1.Text = "This program cannot handle an assembly that large."; * //reset if the user wants to run a different, valid assembly * testForm.sizeError = false; * //close db connection * testForm.dbConn.Close(); * } */ private void textBox1_TextChanged(object sender, EventArgs e) { WOFocusTimer.Start(); //WorkOrderEntryTextBox.ForeColor = Color.Black; //wo = WorkOrderEntryTextBox.Text; //PNEntryTextBox.Focus(); }