469,332 Members | 6,612 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,332 developers. It's quick & easy.

char number

What is the char number for Escape button ?

IS there a list for all char numbers on windows?

Hrcko
Nov 16 '05 #1
5 13486
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;
--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"Hrvoje Voda" <hr*********@luatech.com> wrote in message
news:d0**********@ls219.htnet.hr...
What is the char number for Escape button ?

IS there a list for all char numbers on windows?

Hrcko

Nov 16 '05 #2
Hrvoje,

A char is an unicode in Net and than as byte format dependend from the code
table you use.

The Esc is (in any ACSII derived codetable because it is bellow the 128) a
byte with a decimal 27 value.

http://msdn.microsoft.com/library/de...es_chart_1.asp

I hope this helps,

Cor

Nov 16 '05 #3
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)

On Tue, 8 Mar 2005 12:35:44 +0100, Hrvoje Voda <hr*********@luatech.com>
wrote:
What is the char number for Escape button ?

IS there a list for all char numbers on windows?

Hrcko


--
Happy Coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #4
Is there ascii for alt+156 £
"Morten Wennevik" <Mo************@hotmail.com> wrote in message
news:opsnboh9xwklbvpo@pbn_computer...
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)

On Tue, 8 Mar 2005 12:35:44 +0100, Hrvoje Voda <hr*********@luatech.com>
wrote:
What is the char number for Escape button ?

IS there a list for all char numbers on windows?

Hrcko


--
Happy Coding!
Morten Wennevik [C# MVP]

Nov 16 '05 #5
No, ASCII is only 7 bytes, 0-127. The byte range 127-255 varies from
system to system based on the current codepage used.
On Wed, 9 Mar 2005 15:50:18 +0200, Harry <ob*****@absamail.co.za> wrote:
Is there ascii for alt+156 £
"Morten Wennevik" <Mo************@hotmail.com> wrote in message
news:opsnboh9xwklbvpo@pbn_computer...
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)

On Tue, 8 Mar 2005 12:35:44 +0100, Hrvoje Voda <hr*********@luatech.com>
wrote:
What is the char number for Escape button ?

IS there a list for all char numbers on windows?

Hrcko


--
Happy Coding!
Morten Wennevik [C# MVP]



--
Happy Coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

70 posts views Thread by Ben Pfaff | last post: by
25 posts views Thread by Gaurav Verma | last post: by
23 posts views Thread by Davey | last post: by
33 posts views Thread by Prasad | last post: by
2 posts views Thread by jaka | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.