Control.PointToScreen Method (Point)
.NET Framework (current version)
Computes the location of the specified client point into screen coordinates.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- p
-
Type:
System.Drawing.Point
The client coordinate Point to convert.
Return Value
Type: System.Drawing.PointA Point that represents the converted Point, 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.
.NET Framework
Available since 1.1
Available since 1.1
Show: