set the position for ascii char in richtextbox
-
Hi all, i need set the position for ascii char in richtextbox. Here is my coding that will show the ascii char in richtextbox. string hex = "040"; string hex1 = "025"; string hex2 = "023"; string hex3 = "025"; int code = Convert.ToInt32(hex,16); int code1 = Convert.ToInt32(hex1,16); int code2 = Convert.ToInt32(hex2,16); int code3 = Convert.ToInt32(hex3, 16); richTextBox1.Text = Encoding.Default.GetString(new byte[] {(byte)code,(byte)code1,(byte)code2,(byte)code3}); Now i need arrange all the ascii char in correct position.I hd tried in many ways,but still got errors.pls help me. Thank you. KAMALES
-
Hi all, i need set the position for ascii char in richtextbox. Here is my coding that will show the ascii char in richtextbox. string hex = "040"; string hex1 = "025"; string hex2 = "023"; string hex3 = "025"; int code = Convert.ToInt32(hex,16); int code1 = Convert.ToInt32(hex1,16); int code2 = Convert.ToInt32(hex2,16); int code3 = Convert.ToInt32(hex3, 16); richTextBox1.Text = Encoding.Default.GetString(new byte[] {(byte)code,(byte)code1,(byte)code2,(byte)code3}); Now i need arrange all the ascii char in correct position.I hd tried in many ways,but still got errors.pls help me. Thank you. KAMALES
try in this way :
byte mychar = 40;
richTextBox1.Text = ((char)mychar).ToString();hope it will help
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y -------------------------------------------------------- 128 bit encrypted signature, crack if you can