tags:

views:

41

answers:

1

I am echoeing the contents of a text file into a window. I can specify decipher \b as {BS}, \t as {TAB}, \n as {ENTER} etc.

  1. Where do I find a complete list of the C# escape character and its associated typewriter string i.e. \b is the C# escape sequence and {BS} is the typewriter string?
  2. I need a list that includes composite typewriter strings like Shift+F1 etc.

Thanks.

+2  A: 

MSDN notes the following:

To specify keys combined with any combination of the SHIFT, CTRL, and ALT keys, precede the key code with one or more of the following codes.

Key      Code  
SHIFT    +  
CTRL     ^  
ALT      %  
Albin Sunnanbo
I want to know how to write SHIFT+ in the file that I'll echo to the window. I write \b for {BS}: How Do I write SHIFT + such that C# knows it is a composite character rather than S followed by H followed by I etc. ?
AAsk
If you want to send Shift+F1 you type +{F1}
Albin Sunnanbo