Here are the examples of the csharp api class System.Windows.Forms.Form.GetResizeAt(Point) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
0
1. Example
Project: Unity-WinForms
Source File: Form.cs
Source File: Form.cs
protected override void OnMouseMove(MouseEventArgs e) { base.OnMouseMove(e); if (windowMove) { if (Parent == null) Location = PointToScreen(e.Location).Subtract(windowMove_StartPosition); else Location = Parent.PointToClient(PointToScreen(e.Location).Subtract(windowMove_StartPosition)); } else GetResizeAt(e.Location); }
0
2. Example
Project: Unity-WinForms
Source File: Form.cs
Source File: Form.cs
protected override void OnMouseDown(MouseEventArgs e) { base.OnMouseDown(e); if (e.Button == MouseButtons.Left) { resizeType = GetResizeAt(e.Location); SetResize(resizeType); if (resizeType == ControlResizeTypes.None) { // Move then. if (uwfMovable) if (e.Location.Y < uwfHeaderHeight) { windowMove_StartPosition = e.Location; windowMove = true; } } } }