BCGControlBar Library for .NET
GetScreenRect Method (GlobalUtils)




A control to calculate boundaries in screen coordinates.
Computes the size and location of the specified control in screen coordinates.
Syntax
'Declaration
 
Public Shared Function GetScreenRect( _
   ByVal control As Control _
) As Rectangle
'Usage
 
Dim control As Control
Dim value As Rectangle
 
value = GlobalUtils.GetScreenRect(control)
public static Rectangle GetScreenRect( 
   Control control
)
public: static Rectangle GetScreenRect( 
   Control* control
) 
public:
static Rectangle GetScreenRect( 
   Control^ control
) 

Parameters

control
A control to calculate boundaries in screen coordinates.
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

GlobalUtils Class
GlobalUtils Members

Send Feedback