Example #1
0
 // The ClearButton_Click Method
 // purpose: Clear the textboxes, and put the cursor back in the first text box
 // Parameters: The sending object, and the event arguments
 // Returns: none
 private void ClearButton_Click(object sender, EventArgs e)
 {
     // clear each text box.
     SideA.Clear();
     SideB.Clear();
     AngleC.Clear();
     SideC.Clear();
     AngleA.Clear();
     AngleB.Clear();
     // put the cursor back in the first text box.
     SideA.Select();
 }