473,396 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 13803
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

70
by: Ben Pfaff | last post by:
One issue that comes up fairly often around here is the poor quality of the pseudo-random number generators supplied with many C implementations. As a result, we have to recommend things like...
25
by: Gaurav Verma | last post by:
Hi, I want to convert a floating point number (or a decimal number say 123.456) into binary notation using a C program. Can somebody help me out with it? Thanks Gaurav --...
23
by: Davey | last post by:
How do I display an integer in binary format in C? e.g. 4 displayed as "100"
2
by: Cosmin Prund | last post by:
This is supposed to be very easy, only I did not find this in MSDN so I'll ask here: How do I enter a char constant using the char's ASCII number? Specifically I want to be able to compare a...
33
by: Prasad | last post by:
Hi, Can anyone please tell me how to store a 13 digit number in C language ? Also what is the format specifier to be used to access this variable ? Thanks in advance, Prasad P
7
by: dtschoepe | last post by:
Hi, I am working on a project for school and I am trying to get my head around something weird. I have a function setup which is used to get an input from stdin and a piece of memory is created...
2
by: jaka | last post by:
Hi, I'm in need of some expert help in sorting a numerical/alphanumerical employee ID field (5&6 characters in length). Also seperating the alphanumerical IDs and finding the gaps in the...
5
by: passionpatel | last post by:
Given For e.g, char input = "10011210582553796"; now Hexadecimal of 10011210582553796 is 2391249A8B74C4. So output unsigned char* should have value, unsigned char output =...
29
by: Kenzogio | last post by:
Hi, I have a struct "allmsg" and him member : unsigned char card_number; //16 allmsg.card_number
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.