Information générale
Catégorie:
Contrôles ActiveX en VFP
Titre:
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement