I want to know how to display some special characters from character map (using with Alt) when user type some key.
For example: display ¥(Alt+0165) when type \, display §(Alt+0167) when type [.
I know that the following code display z if user type a. But I don’t know for characters with Alt key.
private void richTextBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == 'a')
e.KeyChar = 'z';
}
Thanks in advance.
I think straight forward way must work correct:
Just type those chars with Alt in Visual studio!