WaitForIncomingData3 Method
Waits for any data to come from the host.
expression.WaitForIncomingData3( _
ByVal As Integer, _
ByVal As Boolean _
) As ReturnCode
where
expression is a variable that represents a
Screen Object
Parameters
- timeout
- wait timeout value (milliseconds). Value of 0 indicates wait indefinitely.
- enablekeyboard
- Specifies whether the keyboard is enabled while the call executes.
Return Value
One of the following ReturnCode enumeration values.
Member |
Description |
Cancelled |
Cancelled. |
Error |
Error. |
PermissionRequired |
Permission is required. |
Success |
Success. |
Timeout |
Timeout condition. |
Truncated |
The text is truncated. |
In this example, Reflection runs minimized until data is received from the host, at which time the Reflection Workspace returns to its normal size and becomes the active window.
Sub WaitMinimized()
With ThisFrame
.WindowState = FormWindowState_Minimized
ThisScreen.WaitForIncomingData3 5000, True
.WindowState = FormWindowState_Normal
.Activate
End With
End Sub