Form1
is already added to the project, so use that as the main form. On Form1, add the following (those blank
cells in the tables throughout this appendix are blank on purpose, because those objects on the form do
not require the object name to be changed or the Text values set).
Object Type Name Text
Panel
Panel
Button cmdOrders Orders
Button cmdCustomers Customers
Button cmdSynchronize Synchronize
Button cmdDeliveries Deliveries
Button cmdProducts Products
Label Manage orders
Label Manage customers
Label Merge local DB w/Central DB
Label Manage Deliveries
Label Manage product catalog entries
316
Appendix A: Case Study
You can place those objects anywhere on the form, but it should look something like Figure A-3. (Yeah, I
added a pretty picture but it is not necessary.)
The next step is to add the login form. Add a new form to the project and call it LoginForm. Add the
following objects to it.
Figure A-3
Object Type Name Text
Label Enter user name and password
Label Username:
Label Password
TextBox txtUsername
TextBox txtPassword
Button cmdOK OK
Button cmdCancel Cancel
317
Appendix A: Case Study
Figure A-4 shows what the login form should look like.
Pages:
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495