ScreenUPG
OpenEx Method
Example 



The number of seconds to wait for open to complete.
Opens a host session, waiting a specified time for the connection to be established before returning.
Syntax
'Declaration
 
Public Function OpenEx( _ 
   ByVal timeout As Integer _ 
) As Boolean
'Usage
 
Dim instance As ScreenUPG 
Dim timeout As Integer 
Dim value As Boolean 
  
value = instance.OpenEx(timeout)
public bool OpenEx( 
   int timeout 
)
public: 
bool OpenEx( 
   int timeout 
) 

Parameters

timeout
The number of seconds to wait for open to complete.

Return Value

true or false. If the session is opened successfully, the return value is true; otherwise it is false.
Remarks
Note: If the timeout is zero, OpenEx returns immediately, which may be before the host connection has been established. The developer should check for a true value returned by isConnected before calling additional API methods.
Example
// Wait 10 seconds before timing out the open
boolean isOpen = screen.OpenEx(10);
Dim isOpen As Boolean
            
'Wait 10 seconds before timing out the open
open = screen.OpenEx(10)
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ScreenUPG Class
ScreenUPG Members
Close Method
isConnected Method
Open Method