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?