To add functionality to the Clear button, you simply need to add code that will remove all of the data from the window fields. Enter the following code to accomplish this task:
/////////////////// THE CLEAR BUTTON ///////////////////// // The CLEAR button simply blanks out the fields on the form private void btnClear_Click(object sender, EventArgs e) { //Variable for table operation error TableError err; //Create a reference to the PM Vendor Mstr table PmVendorMstrTable VendorMSTRTable; VendorMSTRTable = Dynamics.Tables.PmVendorMstr; // Release any existing lock VendorMSTRTable.Release(); txtVendorID.Text = string.Empty; txtVendorName.Text = string.Empty; txtVendorAddress.Text = string.Empty; txtCity.Text = string.Empty; txtState.Text = string.Empty; ...