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

Get Visual Basic® .NET Database Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.