General information
Category:
ActiveX controls in 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
Previous
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