ActiveX Controls Overview
ActiveX controls (.ocx files) are installed by default when you install Visual FoxPro. You can distribute ActiveX controls with your applications. ActiveX controls are added to a form in an application by using the Visual FoxPro OLE container control.
The following table lists the .ocx files that are installed with Visual FoxPro and the ActiveX controls contained in each file.
Note
Help files for these ActiveX controls are available when MSDN is installed.
File |
Controls |
---|---|
MSCOMCt2.ocx |
Animation control DateTimePicker control FlatScrollBar control MonthView control UpDown control |
MCI32.ocx |
Multimedia MCI control |
MSChrt20.ocx |
MsChart control |
MSCOMCtl.ocx |
ImageCombo control ImageList control ListView control ProgressBar control Slider control StatusBar control TabStrip control Toolbar control TreeView control |
MSCOMM32.ocx |
MSComm control |
MSInet.ocx |
Microsoft Internet Transfer control |
MSMapi32.ocx |
MAPIMessages control MAPISession control |
MSMask32.ocx |
Masked Edit control |
MSWinsck.ocx |
Winsock control |
Picclp32.ocx |
PictureClip control |
Richtx32.ocx |
RichTextBox control |
Sysinfo.ocx |
SysInfo control |
Note
In earlier versions of Visual FoxPro, the file containing the ActiveX controls was renamed from Comctl32.ocx to MSCOMCtl.ocx. Even though Visual FoxPro upgraded to the MSCOMCtl.ocx file, older forms with these controls still reference the older file because the ActiveX control is bound by its OleClass property. ActiveX controls from the older COMCtl32.ocx file have a version of 1. For example, the OleClass property for a ListView control on an earlier form would say:
COMCTL.ListViewCtrl.1
Newer ActiveX controls in the Mscomctl.ocx file have a version 2 (or higher). For example:
COMCTL.TreeViewCtrl.2
Visual FoxPro does not automatically upgrade your control, so it is important to know which version of an ActiveX control a form uses when distributing your applications.
See Also
Reference
Controls Tab, Options Dialog Box