Source Code
Much of the source code used by program OrderEntryMultiUser is similar to the code used by OrderEntryTabs so it is not repeated here. Look at the code shown in Chapter 10, “A Single-User Example,” or download the OrderEntryMultiUser sample program from the book’s Web site and look at it for yourself. Listing 11.1 shows some pieces of code used by the customer detail form that deserve special mention, however.
When the user clicks the Orders tab’s Add button, the btnOrderAdd_Click event handler executes. This routine calls subroutine CustomerFormEndAllEdits to end any pending edits on the form’s CurrencyManagers so any changes are preserved. The event handler then calls function MaxOrderId to find the largest OrderId value used so ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access