Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling activex control in form
Message
From
15/11/2001 12:06:11
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00581654
Message ID:
00582188
Views:
35
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform