Control.RectangleToScreen Method (Rectangle)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Computes the size and location of the specified client rectangle in screen coordinates.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

member RectangleToScreen : 
        r:Rectangle -> Rectangle

Parameters

r
Type: System.Drawing.Rectangle

The client coordinate Rectangle to convert.

Return Value

Type: System.Drawing.Rectangle

A Rectangle that represents the converted Rectangle, p, in screen coordinates.

The following code example demonstrates how to use the BackColor, RectangleToScreen, PointToScreen, MouseButtons, ControlPaint.DrawReversibleFrame, and Rectangle.IntersectsWith members. To run the example, paste the following code in a form called Form1 containing several controls. This example requires that the MouseDown, MouseMove, and MouseUp events are connected to the event handlers defined in the example.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: