Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Common Dialog: ShowOpen() errors out
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00971064
Message ID:
00971638
Views:
64
This message has been marked as the solution to the initial question of the thread.
>>I think that what you've run into, especially in view of the messages, is the maximum length of the path. This is currently 260 in ANSI.
>
>Nope. That was a small prob, just fixed by increasing MaxSize.
>The problem is it does not liked to be instantiated directly, but in a form for whatever reason.

Alex,

You cannot instantiate the control directly. It will work fine in development, but will error out, even if it's properly installed.

The problem has to do with a licensing issue. Drop the ActiveX control on a form, and use it to instantiate the class. This has a side benefit of allowing you to control the position of the dialog, since it's always relative to the form it's on.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform