Application.Enabled



Enabled() As Boolean
ED
avaliable
RT
avaliable

Remarks

Sets the visibility of the application main window. This property can be read as well as written. If the value is set to False, the window is deactivated. Thus online operation, e.g. switching pictures in the Runtime, is prevented. As a default the value is set to True. In this case online operation is possible.

Sample:

The example listed below accesses the object Application of the control system from an external application and de/activates the main window depending of the status.

Sub zenOnEnable()
Dim obZenOn As zenOn.Application
	'Get existing Object (zenOn Runtime)
	Set obZenOn = GetObject(, "zenOn.Application")
	If (obZenOn Is Nothing) Then
		MsgBox "zenOn Runtime not active"
		Exit Sub
	End If
	'Enable/Disable Main Window...
	obZenOn.Enabled = Not obZenOn.Enabled
End Sub


See Also

Application