C# Class Longkong.ColorPicker.Controls.DragForm

Inheritance: System.Windows.Forms.Form
Mostra file Open project: Longkong/Pojjaman Class Usage Examples

Private Properties

Property Type Description
ChangeSize void
DragForm System
ShowForm void
UpdateLocation void

Protected Methods

Method Description
OnPaint ( PaintEventArgs e ) : void

Paints a thin 1f border around the boundaries of the client area.

WndProc ( Message &m ) : void

Overrides the Form's WndProc method to return HTTRANSPARENT when the WM_NCHITTEST message is returned.

Private Methods

Method Description
ChangeSize ( Size newSize ) : void

Sets the client size of the form equal to the Size parameter.

DragForm ( ) : System

Overloaded constructor that allows you to set the size property.

ShowForm ( ) : void

Displays the form with a transparency of .5, but does not make it active.

UpdateLocation ( Point newLocation ) : void

Sets the location of the form relative to the top left corner of the client area as opposed to the top left corner of the window.

Method Details

OnPaint() protected method

Paints a thin 1f border around the boundaries of the client area.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs A PaintEventArgs that contains the event data.
return void

WndProc() protected method

Overrides the Form's WndProc method to return HTTRANSPARENT when the WM_NCHITTEST message is returned.
protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message A message object containing the message data.
return void