O'Reilly logo

Developing Microsoft Dynamics GP Business Applications by Leslie Vail

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Clearing the window

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required