General information
Category:
ActiveX controls in VFP
Title:
OLECalendar in _datetime vcx
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only