Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disable access when an OCX is run
Message
From
04/12/1997 11:45:37
 
 
To
All
General information
Forum:
Visual Basic
Category:
ActiveX controls
Title:
Disable access when an OCX is run
Miscellaneous
Thread ID:
00063836
Message ID:
00063836
Views:
93
From a form, I have a button which is calling a method of my OCX. When that method is running, I would like to disable access to the interface. In my OCX, I did this to lock the interface:

llEnabled = Parent.Enabled
Parent.Enabled = False

However, this won't work when running the OCX in another environment.

I can remove it from the OCX and have the developers take care of it from their form but this is not what I want. I would like to handle it from the OCX level in case the developers forget to add this code.

Any idea?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform