Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabling activex control in form
Message
De
15/11/2001 12:40:49
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00581654
Message ID:
00582220
Vues:
38
I don't need class. I can run a separate hidden form containing MSCOMM and
never display it to user. However, this makes my code to complicated to manipulate with two forms.

Is'nt there a solution which does not require separate form ?


>Does it work on class based form? If it does, you can instaniate hiddedn form with control when necessary.
>
>>I need to place a code to mscomm OnComm() event.
>>I have found that if I place to OnComm() event in a separate class and
>>add an instance of this class to form using
>>
>>thisform.NEWOBJECT('oCom', 'mycomm','mycomlass.vcx')
>>
>>OnComm() event does not fire!
>>
>>However, if I place a MSCOMM OLEControl directly to form and place code to its OnComm() event, OnComm() event fires!
>>
>>>Why don't you subclass this control and add it to the form at runtime if it's present on the computer?
>>>
>>>>I added an MSCOMM control to form in form designer.
>>>>I need that this control will not be created this control in not present on the user's computer.
>>>>
>>>>Is it sufficient to add
>>>>
>>>>RETURN .F.
>>>>
>>>>to init event of activex control in form to prevent error if this control is not present in user's computer ?
>>>>
>>>>I cannot test it in my computer since it is not possible to unregister mscomm control.
>>>>regrvr32 /u shows success but if I run the form, the control is registered automatically. Why?
Andrus
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform