Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with MS OCX updates
Message
From
01/02/1999 12:15:24
 
 
To
28/01/1999 12:54:24
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00181424
Message ID:
00182547
Views:
7
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
Map
View

Click here to load this message in the networking platform