Adding the List Window Code
Now that you have the window designed, it's time to add the code behind the scenes. There are many graphical effects that you might want to add, but for reasons of simplicity, the number of “bonus” features has been kept to a minimum. This application is designed to let you focus on working with the Web Service in a typical client application.
Listing 13.1 shows the code for the list window that you need to write. Most of the code in your form is automatically generated and is omitted here for clarity. Much of the generated code deals with the database controls that you already added to the form.
Listing 13.1. frmListStocks.frm—Code for the List Window
Public Class frmStockMonitor Inherits System.Windows.Forms.Form ... |
Get Creating and Consuming Web Services in Visual Basic® 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.