- Creating Visual Basic Components for the Web
- Making a Web-Aware ActiveX Custom Control
- Understanding Custom Controls and Asynchronous Transfer
- Working with UserControl.AsyncRead
- Downloading a Graphic
- Understanding Properties in Terms of AsyncRead
- Working with the FileSystemObject
- Compiling the Custom Control
- Packing the Custom Control
- Deploying the Custom Control with a Sample Page
- Updating the Custom Control
- Conclusion
Compiling the Custom Control
Compiling the custom control is easy enough. You go to the File menu in the Visual Basic IDE and select Make ControlName.ocx. (In this case, the control is called Informit.ocx, so we'll choose Make Informit.ocx). When you compile the custom control, the Visual Basic IDE also makes the necessary entries in the Windows Registry so that you can use the control in your VB projects. However, we want to use this control in a Web page, which is also a straightforward undertaking. The bulk of the work of embedding the custom control in a Web page is taken care of automatically by the Package and Deployment Wizard.