Table of Contents

Class TouchForm

Namespace
NanoByte.Common.Controls
Assembly
NanoByte.Common.WinForms.dll

Represents a window that reacts to touch input on Windows 7 or newer.

public class TouchForm : Form, ITouchControl
Inheritance
TouchForm
Implements
Extension Methods

Properties

CreateParams

Gets the required creation parameters when the control handle is created.

protected override CreateParams CreateParams { get; }

Property Value

CreateParams

A CreateParams that contains the required creation parameters when the handle to the control is created.

Methods

CreateHandle()

Creates the handle for the form. If a derived class overrides this function, it must call the base implementation.

protected override void CreateHandle()

Exceptions

InvalidOperationException

A handle for this Form has already been created.

WndProc(ref Message)

Processes Windows messages.

[SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.UnmanagedCode)]
protected override void WndProc(ref Message m)

Parameters

m Message

The Windows Message to process.

Events

TouchDown

Raised when the user begins touching the screen.

public event EventHandler<TouchEventArgs>? TouchDown

Event Type

EventHandler<TouchEventArgs>

TouchMove

Raised when the user moves fingers while touching the screen.

public event EventHandler<TouchEventArgs>? TouchMove

Event Type

EventHandler<TouchEventArgs>

TouchUp

Raised when the user stops touching the screen.

public event EventHandler<TouchEventArgs>? TouchUp

Event Type

EventHandler<TouchEventArgs>