Information générale
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
>>> You need to find out the registry key that gets created when the control is registered and check for it.
>
>I don't think I was very clear. I still want to display the form, it does more than just the OLE control. My problem is how to avoid the error message for the OLE control when displaying for form.
>
>One way would be to remove the OLE control and add it to the form when it is valid. I was hoping for a way to keep the OLE control on the form but be able to bypass the error message. That I can't seem to do.
You will have to add the active-x control at run-time and then position (remember to set .visible=.T. for the control) if if is available on the machine. You can check the registry for the entry to determine if it is available. You can also use my previous post suggestion on trapping the error. You cannot add at design time since the form is trying to load the control and you do not have a way to trap and prevent the load attempt.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement