Show();
}
To test what you have so far, compile the application to make sure that everything is good. Press F5 to
run the application, and log in using the same credentials as last time (RussellK and password). When
the main form appears, click the Products button, which opens the SelectProduct form (you saw it
in Figure A-5). Select a product category from the Product Category combo??”for this example, select
the Chairs category. The grid is populated with two products associated with that product category, a
secretary chair and a casual easy chair).
Now stop the application and create a new form called ProductMain. Add the following controls to it (as
with the other forms, the same thing applies to the blank cells in the table below).
Object Type Name Text
Label Name:
Label Product ID:
Label Description:
Label Product Category:
Label Manufacturer:
Label Mfr.SKU (UPC):
Label Length:
Label Width:
Label Depth:
Label Height:
Label Cost:
Label Price:
Label Qty on Hand:
322
Appendix A: Case Study
Object Type Name Text
TextBox txtName
TextBox txtProductID
TextBox txtDescription
TextBox txtManufacturerSKU
TextBox txtLength
TextBox txtWidth
TextBox txtDepth
TextBox txtHeight
TextBox txtCost
TextBox txtPrice
TextBox txtQuantity
ComboBox cboProductCategory
ComboBox cboManufacturer
Button cmdOK OK
Button cmdCancel Cancel
Also, set the Enabled property of the txtProductID text box to False.
Pages:
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501