char number

  • Thread starter Thread starter Hrvoje Voda
  • Start date Start date
H

Hrvoje Voda

What is the char number for Escape button ?

IS there a list for all char numbers on windows?

Hrcko
 
Escape character is 29.

ASCII:

NUL = 0x00, /* Null */

SOH = 0x01, /* Start of heading */

STX = 0x02, /* Start of text */

ETX = 0x03, /* End of text */

EOT = 0x04, /* End of transmission */

ENQ = 0x05, /* Enquiry */

ACK = 0x06, /* Acknowledge */

BEL = 0x07, /* Bell */

BS = 0x08, /* Backspace */

TAB = 0x09, /* Horizontal tab */

LF = 0x0A, /* NL line feed, new line */

VT = 0x0B, /* Vertical tab */

FF = 0x0C, /* NP form feed, new page */

CR = 0x0D, /* Carriage return */

SO = 0x0E, /* Shift out */

SI = 0x0F, /* Shift in */

DLE = 0x10, /* Data link escape */

DC1 = 0x11, /* Device control 1 */

DC2 = 0x12, /* Device control 2 */

DC3 = 0x13, /* Device control 3 */

DC4 = 0x14, /* Device control 4 */

NAK = 0x15, /* Negative acknowledge */

SYN = 0x16, /* Synchronous idle */

ETB = 0x17, /* End of transmission block */

CAN = 0x18, /* Cancel */

EM = 0x19, /* End of medium */

SUB = 0x1A, /* Substitute */

ESC = 0x1B, /* Escape */

FS = 0x1C, /* File separator */

GS = 0x1D, /* Group separator */

RS = 0x1E, /* Record separator */

US = 0x1F, /* Unit separator */

Space = 0x20,

ExclamationMark = 0x21,

Quote = 0x22,

NumberSign = 0x23,

DollarSign = 0x24,

Percent = 0x25,

Ampersand = 0x26,

SingleQuote = 0x27,

LeftParenthesis = 0x28,

RightParenthesis = 0x29,

Asterisk = 0x2A,

Plus = 0x2B,

Comma = 0x2C,

Minus = 0x2D,

Dot = 0x2E,

FrontSlash = 0x2F,

_0 = 0x30,

_1 = 0x31,

_2 = 0x32,

_3 = 0x33,

_4 = 0x34,

_5 = 0x35,

_6 = 0x36,

_7 = 0x37,

_8 = 0x38,

_9 = 0x39,

Colon = 0x3A,

SemiColon = 0x3B,

LessThan = 0x3C,

EqualSign = 0x3D,

GreaterThan = 0x3E,

QuestionMark = 0x3F,

AtSymbol = 0x40,

A = 0x41,

B = 0x42,

C = 0x43,

D = 0x44,

E = 0x45,

F = 0x46,

G = 0x47,

H = 0x48,

I = 0x49,

J = 0x4A,

K = 0x4B,

L = 0x4C,

M = 0x4D,

N = 0x4E,

O = 0x4F,

P = 0x50,

Q = 0x51,

R = 0x52,

S = 0x53,

T = 0x54,

U = 0x55,

V = 0x56,

W = 0x57,

X = 0x58,

Y = 0x59,

Z = 0x5A,

LeftBracket = 0x5B,

BackSlash = 0x5C,

RightBracket = 0x5D,

Cirumflex = 0x5E,

Underscore = 0x5F,

Apostroph = 0x60,

a = 0x61,

b = 0x62,

c = 0x63,

d = 0x64,

e = 0x65,

f = 0x66,

g = 0x67,

h = 0x68,

i = 0x69,

j = 0x6A,

k = 0x6B,

l = 0x6C,

m = 0x6D,

n = 0x6E,

o = 0x6F,

p = 0x70,

q = 0x71,

r = 0x72,

s = 0x73,

t = 0x74,

u = 0x75,

v = 0x76,

w = 0x77,

x = 0x78,

y = 0x79,

z = 0x7A,

LeftBrace = 0x7B,

VerticalBar = 0x7C,

RightBrace = 0x7D,

Tilde = 0x7E,

DEL = 0x7F;
 
Hi,

A good way to find out which key does what is to use the KeyPress/KeyDown
events and see what gets passed when you hit a key.

protected override void OnKeyPress(KeyPressEventArgs e)
{
MessageBox.Show(((int)e.KeyChar).ToString());
}

(PS. KeyPreview must be set or the control/form must be empty)
 
Is there ascii for alt+156 £
Morten Wennevik said:
Hi,

A good way to find out which key does what is to use the KeyPress/KeyDown
events and see what gets passed when you hit a key.

protected override void OnKeyPress(KeyPressEventArgs e)
{
MessageBox.Show(((int)e.KeyChar).ToString());
}

(PS. KeyPreview must be set or the control/form must be empty)
 
Back
Top