Features of Visual Basic ActiveX Components

See Also

With Visual Basic you can create components ranging from code libraries to Automation-enabled applications. You can create and distribute ActiveX control packages, with full licensing capability, or Internet applications with ActiveX documents that can display themselves in Internet browsers. With the Enterprise Edition of Visual Basic, you can run code components — such as business rule servers — on remote computers.

Figure 1.1 shows a Visual Basic application that uses several components, all of them built with Visual Basic.

Figure 1.1   Visual Basic application using components

Visual Basic ActiveX components are Internet- and intranet-enabled. Figure 1.2 shows a business analyst viewing a form on his desktop computer at the home office, while a sales representative views the same information through a Web page, using a Visual Basic ActiveX document.

Figure 1.2   Visual Basic activates the Internet

Which Type of Component Should I Build?

With all the different types of ActiveX components to choose from, how do you decide which type of component is best for a given situation? It may help to think of them in terms of functionality:

No matter which type of ActiveX component you choose to build, Visual Basic makes reusability a reality.

Features for Building Components

The following are some of the features Visual Basic provides for creating software components.

These features are discussed in detail in "General Principles of Component Design," along with other subjects relevant to all component types.

For More Information   Components that perform computation-intensive tasks may benefit from compilation to native code. This subject is covered in "More About Programming" in the Visual Basic Programmer’s Guide.