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

Click here to load this message in the networking platform