Visual Basic Concepts

Writing Code Using Dynamic HTML

When you create a DHTML application in Visual Basic, you use the object model to access and manipulate anything within the page. The HTML elements in the page are available as individual objects, which means you can examine and modify an element and its attributes by reading and setting properties and by calling methods.

The object model also makes user actions — such as clicking, double-clicking, or right-clicking an element, pressing keys, and loading forms — available as events. You can intercept and process these and other events by creating event procedures in your Visual Basic code.

For a Visual Basic programmer, there are many aspects of the Dynamic HTML object model that are unfamiliar. The following sections present an overview of some of the key differences between Visual Basic’s programming model and the Dynamic HTML object model. The following table explains some of the areas where you may encounter differences and lists the sections to which you can go for more information.

If you need help See
Understanding the object model "The Dynamic HTML Object Model in Visual Basic"
Understanding what Visual Basic events the events in Dynamic HTML correspond to "Events in Dynamic HTML"
Making elements on your page programmable "Making Page Elements Programmable"
Working with styles "Setting and Retrieving Properties for a Web Page" or "Dynamic HTML in Visual Basic"
Working with text elements in your pages "Handling Text in the Page Designer"
Retrieving data from a form or other elements within an HTML page "Retrieving Data from an HTML Page"
Navigating among pages "Navigating in DHTML Applications"
Creating elements on the fly and inserting them, with events, onto the HTML page "Dynamically Creating Elements and Events"
Storing and retrieving state information "Managing State in DHTML Applications"