Information générale
Catégorie:
Contrôles ActiveX en VFP
Hi Trey.
>The calendar comes up with everything black - was the 'default' of light gray - or with an error that Property VALUE is not found.
You need to use the syntax oCalendar.Object.Value.
>In the form which contains the Calendar, the OCX was actually changed!
>Was supposed to bs MSACal70.ocx - changed to MSCal.ocx. It's the new version, but I don't want the new version, since I coded it to work with the old version.
>The form which contains the TreeView and ImageList throws a Class Not Registered error for each control.
As Ed pointed out, the way around this is to instantiate the objects at runtime, not design time. You can subclass them in a PRG if you need code in the ActiveX methods (you have to use a PRG rather than subclassing them visually the avoid moving the problem from a form to a VCX). I wrote an article about this issue in the June 1998 issue of FoxTalk -- my solution was a generic SFActiveX object that loads the appropriate ActiveX control at runtime. Let me know if you don't have a copy of the article handy.
Say hi to Bruce for me!
DOug
Précédent
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