Article ID: 172193 - View products that this article applies to.
This article was previously published under Q172193
The following custom (ActiveX) controls that shipped with Visual Basic 4.0 are not installed with Visual Basic 5.0:
AniBtn32.OCX Gauge32.OCX Graph32.OCX Grid32.OCX KeySta32.OCX MSOutl32.OCX MSRDC32.OCX Spin32.OCX ThreeD32.OCX
These controls have been replaced with different custom (ActiveX) controls or enhanced intrinsic controls. Microsoft does not support the use of these controls in Visual Basic 5.0. This article describes each of these Visual Basic 4.0 controls and how to achieve the same functionality in Visual Basic 5.0.
A brief description of each of the discontinued Visual Basic 4.0 custom (ActiveX) controls and their Visual Basic 5.0 replacements follows.
AniBtn32.OCXThe Animated Button control is a flexible button control that allows you to use any icon, bitmap, or metafile to define your own button controls. It also allows you to create animated or multi-state buttons.
The intrinsic Command Button control in Visual Basic 5.0 now supports a Picture property. The Picture property supports graphics of the following types: bitmap, icon, metafile, GIF, and JPEG.
The Animation control can be used to create buttons that display animations. This control is included with the Windows Common Controls-2, ComCt232.OCX.
Gauge32.OCXThe Gauge control creates user-defined gauges with a choice of linear (filled) or needle styles. This control is useful for thermometers, fuel gauges, percent-complete indicators, or any other type of analog gauge.
In Visual Basic 5.0, use the ProgressBar control found in the Windows Common Controls, ComCtl32.OCX.
Graph32.OCXThe Graph control allows programmatic creation of graphs and charts in Visual Basic objects.
In Visual Basic 5.0, the MSChart control, MSChart.OCX, provides similar functionality.
Grid32.OCXA Grid control displays a series of rows and columns.
In Visual Basic 5.0 use the FlexGrid control, MSFlxGrd.OCX.
KeySta32.OCXYou can use the Key State control to display or modify the CAPS LOCK, NUM LOCK, INS, and SCROLL LOCK keyboard states.
In Visual Basic 5.0, you can modify the status of CAPS LOCK, NUM LOCK, INS, and SCROLL LOCK using the SendKeys command or Windows API commands. The state of the above keys can be displayed using the StatusBar control. The StatusBar control can be found with the Windows Common Controls, ComCtl32.OCX.
MSOutl32.OCXThe Outline control is a special type of list box that allows you to display items in a list hierarchically. This is useful for showing directories and files in a file system.
In Visual Basic 5.0, the TreeView control provides similar functionality. The TreeView control can be found in the Windows Common Controls, ComCtl32.OCX. For displaying directories and file systems, the intrinsic DriveListBox, DirListBox and FileListBox may be used.
MSRDC32.OCXProvides access to data stored in a remote ODBC data source. The Remote Data control enables you to move from row to row in a result set and to display and manipulate data in bound controls.
In Visual Basic 5.0, this control had been replaced with MSRDC20.OCX.
Spin32.OCXThe Spin button is a spinner control that you can use with another control to increment and decrement numbers. You can also use it to scroll back and forth through a range of values or a list of items.
In Visual Basic 5.0, use the UpDown control found in the Windows Common Controls-2, ComCt232.OCX.
ThreeD32.OCXThe ThreeD32.OCX provides three-dimensional versions of several of the Visual Basic intrinsic controls, such as the 3D Command Button and 3D CheckBox.
Most of the functionality provided by this control has been incorporated into each of the intrinsic Visual Basic 5.0 controls.
NOTE: The discontinued controls listed above are no longer supported in Visual Basic 5.0 applications. However, for backward compatibility several of the files are available on the Visual Basic 5.0 installation CD-ROM in the following location:
Detailed instructions for installing the older versions of the controls are provided in the README.TXT file in the same folder.
The Custom Control Reference Help File found in the Tools\Controls folder of the Visual Basic 5.0 installation CD-ROM.
The ReadMe.Txt file found in the Tools\Controls folder of the Visual Basic 5.0 installation CD-ROM.
Visual Basic Books On-Line\Visual Basic Help\Controls Reference\ActiveX Controls.
Article ID: 172193 - Last Review: June 28, 2004 - Revision: 3.0
Contact us for more help