>>>How do you programmatically instanciate the common dialog control?
>>>CREATOBJECT("CommonDialog") doesn't work. Thanks
>>
>>John,
>>
>>Let me save you a ton of trouble.
Don't try to do this! The reason is that it won't work at run-time. You'll get an error. It's best to drop the control on a form, and either use the property sheet or programmatically set the properties.
>>
>>For details on the error, see MS KB article Q192693 "BUG: License Error with ActiveX Control Added at Run-Time".
>
>Gee, I knew there must be some reason I had never done this programmatically. < g >
I wish I could say the same.:-( Unfortunately, from a design standpoint, I think it's exactly what you
should do. Maybe this bug is fixed in VFP 7.0. Unfortunately, it's a bit hard for me to try. All of my boxes have VFP installed, so it's tough to test. Maybe Mike can tell us if this has changed.
George
Ubi caritas et amor, deus ibi est