2010-11-11 38 views

回答

2

您輸入其他字符相同的方式。
C#源文件可以在標識符和字符串中包含Unicode字符。

您還可以使用轉義序列"\uxxxx"按(十六進制)代碼點使用Unicode字符。

0
tb.PasswordChar = (char)254; 
0

我相信你應該能夠只分配一個恆定的Unicode字符,如this MSDN article描述...

0

this.tePassword.Properties.PasswordChar =(char)254;導致看起來類似於b的字符 - 它絕對不是ascii 254.

0

textBox_Name.PasswordChar ='■';

當你想使用任何的Unicode字符該鍵的簡單按下ALT &則ASCII值的同時按下ALT鍵

例如

■= ALT + 254

♪= ALT + 269

A = ALT + 65

一個= ALT + 97

注:數字鑰匙必須從NumPad按下