Compartilhar via


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.

File Controls Help file
MSCOMCTL2.ocx Animation control
Datetimepicker control
Monthview control
Updown control
Cmctl298.chm
MCI32.ocx Multimedia MCI control Mmedia.chm
MSChrt20.ocx MsChart control Mschrt98.chm
MSComctl.ocx ImageCombo control
ImageList control
ListView control
ProgressBar control
Slider control
StatusBar control
TabStrip control
Toolbar control
TreeView control
Cmctl198.chm
MSComm32.ocx MSComm control Comm98.chm
MSInet.ocx Microsoft Internet Transfer control Inet98.chm
MSMapi32.ocx MAPI Message control
MAPI Session control
Mapi98.chm
MSMask32.ocx Masked Edit control Masked98.chm
MSWinsck.ocx Winsock control Mswnsk98.chm
Picclp32.ocx PicClip control Picclp98.chm
Richtx32.ocx Rich Textbox control Rtfbox98.chm
Sysinfo.ocx SysInfo control Sysinf98.chm

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 new Mscomctl.ocx file, older forms with these controls will still reference the older file since 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 will 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

Adding OLE | Controls Tab, Options Dialog Box | OLE Container Control