Click here to Skip to main content
15,905,776 members
Home / Discussions / C#
   

C#

 
AnswerRe: Quick Listbox Question Pin
Paul Conrad22-Jul-07 19:28
professionalPaul Conrad22-Jul-07 19:28 
AnswerRe: Quick Listbox Question Pin
Luc Pattyn23-Jul-07 2:30
sitebuilderLuc Pattyn23-Jul-07 2:30 
AnswerRe: Quick Listbox Question Pin
Michael Fritzius23-Jul-07 5:19
professionalMichael Fritzius23-Jul-07 5:19 
QuestionVariable Declared Pin
Muhammad Nauman Yousuf22-Jul-07 18:45
Muhammad Nauman Yousuf22-Jul-07 18:45 
AnswerRe: Variable Declared Pin
Guffa22-Jul-07 18:54
Guffa22-Jul-07 18:54 
GeneralRe: Variable Declared Pin
Muhammad Nauman Yousuf22-Jul-07 20:23
Muhammad Nauman Yousuf22-Jul-07 20:23 
GeneralRe: Variable Declared Pin
Christian Graus22-Jul-07 20:56
protectorChristian Graus22-Jul-07 20:56 
GeneralRe: Variable Declared Pin
Malcolm Smart22-Jul-07 21:00
Malcolm Smart22-Jul-07 21:00 
GeneralRe: Variable Declared Pin
Malcolm Smart22-Jul-07 20:58
Malcolm Smart22-Jul-07 20:58 
GeneralRe: Variable Declared Pin
Muhammad Nauman Yousuf22-Jul-07 22:00
Muhammad Nauman Yousuf22-Jul-07 22:00 
GeneralRe: Variable Declared Pin
J4amieC22-Jul-07 22:09
J4amieC22-Jul-07 22:09 
GeneralRe: Variable Declared Pin
Guffa22-Jul-07 23:14
Guffa22-Jul-07 23:14 
GeneralRe: Variable Declared Pin
Luc Pattyn23-Jul-07 2:31
sitebuilderLuc Pattyn23-Jul-07 2:31 
AnswerRe: Variable Declared Pin
Christian Graus22-Jul-07 18:57
protectorChristian Graus22-Jul-07 18:57 
AnswerRe: Variable Declared Pin
Sathesh Sakthivel22-Jul-07 19:23
Sathesh Sakthivel22-Jul-07 19:23 
QuestionData Transfer Pin
Le Hoang Viet22-Jul-07 18:34
Le Hoang Viet22-Jul-07 18:34 
AnswerRe: Data Transfer Pin
Christian Graus22-Jul-07 18:48
protectorChristian Graus22-Jul-07 18:48 
QuestionWebcam Server Pin
Le Hoang Viet22-Jul-07 15:51
Le Hoang Viet22-Jul-07 15:51 
AnswerRe: Webcam Server Pin
Christian Graus22-Jul-07 17:04
protectorChristian Graus22-Jul-07 17:04 
QuestionBinary into ASCII Pin
ScIeNcE_ErRoR22-Jul-07 15:01
ScIeNcE_ErRoR22-Jul-07 15:01 
AnswerRe: Binary into ASCII Pin
Luc Pattyn22-Jul-07 15:24
sitebuilderLuc Pattyn22-Jul-07 15:24 
GeneralRe: Binary into ASCII Pin
ScIeNcE_ErRoR22-Jul-07 16:05
ScIeNcE_ErRoR22-Jul-07 16:05 
Well, being I'm all new to this I didn't understand all of it. The way I put it into binary though is as follows:

<br />
char[] arrChars = txtASCII.Text.ToCharArray();<br />
                String sBinary = "";<br />
                String D;<br />
                D = " ";<br />
                foreach (char ch in arrChars)<br />
                {<br />
                    sBinary += Convert.ToString(Convert.ToInt32(ch),2) + D;<br />
                }<br />
                txtBIN.Text = sBinary;<br />


Now, I know that if I change the ,2 to ,16 I get a Hexadecimal output, or Octal if I put ,8 and Decimal if I put ,10. But is there an easy way, by using that code, to reverse the process then? I also tried (Convert.ToChar(ch)) and it gave me the text again. But that was by already typing in my Text Box, not typing in the Binary Box. Can this be simply reversed? And I apologize for the newbie questions, but I'm slowly learning as I go. Trial 'n' Error many times. I tried to type GetChar() but the option of GetChar was not in the drop down menu. I probably missunderstood something though.

Thank You,
ScIeNcE_ErRoR
GeneralRe: Binary into ASCII Pin
Luc Pattyn22-Jul-07 17:23
sitebuilderLuc Pattyn22-Jul-07 17:23 
GeneralRe: Binary into ASCII Pin
ScIeNcE_ErRoR23-Jul-07 13:51
ScIeNcE_ErRoR23-Jul-07 13:51 
GeneralRe: Binary into ASCII Pin
Luc Pattyn23-Jul-07 14:17
sitebuilderLuc Pattyn23-Jul-07 14:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.