Click here to Skip to main content
15,920,005 members
Home / Discussions / C#
   

C#

 
GeneralRe: Send keyboard keys in c# Pin
krinaljariwala2-Dec-09 23:39
krinaljariwala2-Dec-09 23:39 
QuestionDDay.iCal question Pin
Jamie Nordmeyer2-Dec-09 18:13
Jamie Nordmeyer2-Dec-09 18:13 
QuestionAbout charcter code pages Pin
bhaskarsgb2-Dec-09 17:38
bhaskarsgb2-Dec-09 17:38 
AnswerRe: About charcter code pages Pin
Saksida Bojan2-Dec-09 21:36
Saksida Bojan2-Dec-09 21:36 
GeneralRe: About charcter code pages Pin
bhaskarsgb2-Dec-09 22:13
bhaskarsgb2-Dec-09 22:13 
GeneralRe: About charcter code pages Pin
Saksida Bojan2-Dec-09 23:44
Saksida Bojan2-Dec-09 23:44 
GeneralRe: About charcter code pages Pin
bhaskarsgb3-Dec-09 0:49
bhaskarsgb3-Dec-09 0:49 
GeneralRe: About charcter code pages [modified] Pin
Saksida Bojan3-Dec-09 0:53
Saksida Bojan3-Dec-09 0:53 
edit:

It isn't:
.GetEncoding(850).GetBytes
It shoud be:
.GetEncoding(850).GetChars

char x1 = (char)153;
char x2 = 'Ö';
char ss1 = System.Text.Encoding.GetEncoding(850).GetChars(new byte[] { Convert.ToByte(x1) })[0]; //x1=153 result 214="Ö": ANSI code
byte b1 = System.Text.Encoding.GetEncoding(850).GetBytes(new char[] { x2 })[0]; // x2=214 result 153 Code-Page code


Edit: I have tried your second code, second ss1, it shoud work. Try code-page 437 instead 850.


bhaskarsgb wrote:
i want the value 153 if i use the character (char)153 and alt+153.

Are you askinng the folowing: User Press ALT+153 and you want same character with a character code: 153?

modified on Thursday, December 3, 2009 7:24 AM

GeneralRe: About charcter code pages Pin
bhaskarsgb3-Dec-09 7:01
bhaskarsgb3-Dec-09 7:01 
GeneralRe: About charcter code pages Pin
Saksida Bojan3-Dec-09 20:38
Saksida Bojan3-Dec-09 20:38 
GeneralRe: About charcter code pages Pin
bhaskarsgb4-Dec-09 7:01
bhaskarsgb4-Dec-09 7:01 
GeneralRe: About charcter code pages Pin
Saksida Bojan4-Dec-09 8:36
Saksida Bojan4-Dec-09 8:36 
GeneralRe: About charcter code pages Pin
bhaskarsgb4-Dec-09 21:47
bhaskarsgb4-Dec-09 21:47 
GeneralRe: About charcter code pages Pin
Saksida Bojan4-Dec-09 21:58
Saksida Bojan4-Dec-09 21:58 
AnswerRe: About charcter code pages Pin
Luc Pattyn3-Dec-09 1:06
sitebuilderLuc Pattyn3-Dec-09 1:06 
GeneralRe: About charcter code pages Pin
bhaskarsgb4-Dec-09 7:04
bhaskarsgb4-Dec-09 7:04 
QuestionRender 2d function with 16 bit resolution? Pin
Mark H Bishop2-Dec-09 14:00
Mark H Bishop2-Dec-09 14:00 
AnswerRe: Render 2d function with 16 bit resolution? Pin
Luc Pattyn2-Dec-09 14:17
sitebuilderLuc Pattyn2-Dec-09 14:17 
GeneralRe: Render 2d function with 16 bit resolution? Pin
harold aptroot2-Dec-09 22:33
harold aptroot2-Dec-09 22:33 
Generalmore thoughts Pin
Mark H Bishop3-Dec-09 3:02
Mark H Bishop3-Dec-09 3:02 
GeneralRe: more thoughts Pin
harold aptroot3-Dec-09 4:16
harold aptroot3-Dec-09 4:16 
QuestionHow do I ensure that my thread is ready before my main thread continues ? Pin
abiemann2-Dec-09 12:08
abiemann2-Dec-09 12:08 
AnswerRe: How do I ensure that my thread is ready before my main thread continues ? Pin
Luc Pattyn2-Dec-09 13:04
sitebuilderLuc Pattyn2-Dec-09 13:04 
AnswerRe: How do I ensure that my thread is ready before my main thread continues ? Pin
Alan N2-Dec-09 13:17
Alan N2-Dec-09 13:17 
GeneralRe: How do I ensure that my thread is ready before my main thread continues ? Pin
David Skelly2-Dec-09 22:13
David Skelly2-Dec-09 22:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.