Method | Description | |
---|---|---|
CenterOnParent ( [ form ) : void |
Centers a window on its parent/owner. Call this from the Form.Load event handler. This method is an alternative to FormStartPosition.CenterParent which only works with Form.ShowDialog(IWin32Window) and not Form.Show(IWin32Window). |
|
IsKeyDown ( Keys key ) : bool |
Determines whether key is pressed right now. Will always return |
|
RegisterTouchWindow ( |
Registers a control as a receiver for touch events.
|
|
ReleaseCapture ( ) : bool |
Releases the mouse cursor after it was locked by SetCapture. Will always return |
|
SetCapture ( |
Prevents the mouse cursor from leaving a specific window. Will do nothing on non-Windows OSes. |
Method | Description | |
---|---|---|
AddShieldIcon ( [ button ) : void | ||
EnableWindowDrag ( [ control ) : void | ||
HandleTouchMessage ( |
||
SetForegroundWindow ( [ form ) : void |
public static CenterOnParent ( [ form ) : void | ||
form | [ | |
return | void |
public static RegisterTouchWindow ( |
||
control | The control to register. | |
return | void |
public static SetCapture ( |
||
handle | The handle to the window to lock the mouse cursor into. | |
return |