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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.