c# - Display 'Control Characters' on Button controls as its text -


i making virtual keyboard application in win forms, in have 150+ buttons. on these buttons, setting characters [like 'a','d','0','5','#','<' etc.] 'text' of buttons. here have done.

if(keylbl.startswith("0x")) {     // convert number expressed in base-16 integer.      int value = convert.toint32(keylbl, 16);     // char value corrospnding value, , set key label     string btntext = char.convertfromutf32(value);  } else... 

here keylbl getting string in hexadecimal representation [e.g 0x41, 0x42, 0x80, 0x81,... 0xff]

now issue is, getting correct value in btntext values 0x7e not able text next strings 0x80. how can symbols corresponding these display buttons' text.


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -