Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why Can't I use a PRG Based Form for OCX
Message
From
12/07/2004 16:25:27
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00923081
Message ID:
00923458
Views:
44
>Brilliant! I will try that when I get home tonight. Sometimes I get so wound-up with tunnel vision [i.e., refusing to use an SCX], I forget to step back to look for other options.
>
>>How about just slapping the ocx on a form and subclassing the form in the prg?
>>
>>Define Class MyPrgFormClass As MySCXFormClass Of MyFormLibrary.VCX
>>
>>EndDefine
>>
>>Regards
>>
>>Malc

Thomas's method of putting it into a VFP container in a .VCX and adding it to your .PRG based form at runtime should work just fine. I've used that same method for TreeViews and other ActiveX controls.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform