Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLECalendar in _datetime vcx
Message
From
24/09/2003 15:19:18
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
OLECalendar in _datetime vcx
Miscellaneous
Thread ID:
00831976
Message ID:
00831976
Views:
55
Hi I am creating a calendar control from _datetime vcx which in turns uses the mscomct2.ocx activeX control. I am including this ActiveX control in the home directory of my application; however, at certain computers when I try to instantiate the calendar object it tells me that the component is not registered. Can someone give me some hints how to go about registering activex components on the fly. below is the sample code used intantiate the calendar object. Again the mscomct2.ocx is included in the home directory of my application

oCalForm = Create('form')
oCalForm.NewObject("olecalendar","_olecalendar","_datetime")
IF VARTYPE(oCalForm.olecalendar) = "O"
oCalForm.oleCalendar.Visible = .T.
Endif
Next
Reply
Map
View

Click here to load this message in the networking platform