Class NoTitleForm
A borderless form that replaces the standard window caption with custom-drawn chrome,
providing its own resize hit-testing, maximize/restore/minimize buttons hosted on a
tool strip, full-screen mode, and persistence of window bounds between sessions.
Assembly: Reportman.Drawing.Forms.dll
public class NoTitleForm : Form, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
Constructors
View Source
Declaration
Fields
View Source
Declaration
public bool AllowWindowEffects
Field Value
View Source
Declaration
public const int HT_CAPTION = 2
Field Value
View Source
Declaration
public const int WM_NCLBUTTONDOWN = 161
Field Value
View Source
Declaration
public const int WM_NCLBUTTONUP = 162
Field Value
Properties
View Source
Declaration
public Color BorderColor { get; set; }
Property Value
View Source
Declaration
public int BorderSize { get; set; }
Property Value
View Source
Declaration
public int CaptionHeight { get; set; }
Property Value
View Source
Declaration
protected override CreateParams CreateParams { get; }
Property Value
Overrides
View Source
Declaration
public bool DrawBorder { get; set; }
Property Value
View Source
Declaration
public bool DrawGrip { get; set; }
Property Value
View Source
Declaration
public bool DrawTitle { get; set; }
Property Value
View Source
Declaration
public int GripSize { get; set; }
Property Value
View Source
Declaration
public bool ShowTitle { get; set; }
Property Value
Methods
View Source
Declaration
public void AddToolStripButtons(ToolStrip toolStrip1, bool center)
Parameters
View Source
Declaration
public void AfterAdjustWindowToNormal()
View Source
Clean up any resources being used.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type |
Name |
Description |
| bool |
disposing |
true if managed resources should be disposed; otherwise, false.
|
Overrides
View Source
Declaration
protected virtual void OnFormWindowStateChanged(EventArgs e)
Parameters
View Source
Declaration
protected override void OnLoad(EventArgs e)
Parameters
Overrides
View Source
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
Overrides
View Source
Declaration
protected override void OnResize(EventArgs e)
Parameters
Overrides
View Source
Declaration
public static extern bool ReleaseCapture()
Returns
View Source
Declaration
public void RestoreSavedBounds()
View Source
Declaration
View Source
Declaration
public static extern int SendMessage(nint hWnd, int Msg, int wParam, int lParam)
Parameters
Returns
View Source
Declaration
public virtual void SetFullScreen(bool newvalue)
Parameters
| Type |
Name |
Description |
| bool |
newvalue |
|
View Source
Declaration
public void SwitchMaximizeMinimize()
View Source
Declaration
protected override void WndProc(ref Message m)
Parameters
Overrides
Implements