Click here to Skip to main content
16,005,141 members
Home / Discussions / C#
   

C#

 
AnswerRe: using " in a string variable Pin
albCode14-Dec-05 0:35
albCode14-Dec-05 0:35 
QuestionVoice playing problem in DirectSound Pin
pakFari13-Dec-05 21:46
pakFari13-Dec-05 21:46 
QuestionPlaying Audio Files in .NET Pin
khawaja kamran13-Dec-05 21:40
khawaja kamran13-Dec-05 21:40 
AnswerRe: Playing Audio Files in .NET Pin
Polis Pilavas13-Dec-05 22:55
Polis Pilavas13-Dec-05 22:55 
QuestionSending SMS from PC to all MobilePhones Pin
middesrinivasarao@yahoo.co.in13-Dec-05 21:33
middesrinivasarao@yahoo.co.in13-Dec-05 21:33 
QuestionMTAThread and AllowDrop? Pin
M-200013-Dec-05 21:19
M-200013-Dec-05 21:19 
QuestionConvert a String to Binary Pin
climbjm13-Dec-05 20:40
climbjm13-Dec-05 20:40 
AnswerRe: Convert a String to Binary Pin
-Rowan-13-Dec-05 21:25
-Rowan-13-Dec-05 21:25 
I don;t think that this is actually what you are trying to do but your code is designed to convert a binary number into a base10 Integer

Is the text in the textbox1 actually a valid binary string of mumbers? - e.g., "1000111100010".

So if the value was as above you are trying to produce the the Int32 equiv of that Base 2 Binary Number: e.g.:

<br />
int temp2 = 0;<br />
			string temp ="1000111100010";<br />
			temp2 = Convert.ToInt32(temp,2);<br />
			MessageBox.Show(temp2.ToString	());<br />


Produces the output
4578 which is the integer equivilant of the binary number 1000111100010

Is that waht you're trying to do?
GeneralRe: Convert a String to Binary Pin
climbjm14-Dec-05 0:08
climbjm14-Dec-05 0:08 
GeneralRe: Convert a String to Binary Pin
-Rowan-14-Dec-05 0:41
-Rowan-14-Dec-05 0:41 
AnswerRe: Convert a String to Binary Pin
Vikram A Punathambekar13-Dec-05 21:28
Vikram A Punathambekar13-Dec-05 21:28 
AnswerRe: Convert a String to Binary Pin
MarcelErz13-Dec-05 21:44
MarcelErz13-Dec-05 21:44 
Questionopen a remote excel file Pin
cerdemorenel13-Dec-05 20:07
cerdemorenel13-Dec-05 20:07 
QuestionDefining Global Variable Pin
freshonlineMax13-Dec-05 20:03
freshonlineMax13-Dec-05 20:03 
AnswerRe: Defining Global Variable Pin
-Rowan-13-Dec-05 21:07
-Rowan-13-Dec-05 21:07 
GeneralRe: Defining Global Variable Pin
MarcelErz13-Dec-05 21:27
MarcelErz13-Dec-05 21:27 
GeneralRe: Defining Global Variable Pin
freshonlineMax13-Dec-05 22:45
freshonlineMax13-Dec-05 22:45 
GeneralRe: Defining Global Variable Pin
MarcelErz13-Dec-05 23:06
MarcelErz13-Dec-05 23:06 
GeneralRe: Defining Global Variable Pin
freshonlineMax14-Dec-05 18:04
freshonlineMax14-Dec-05 18:04 
GeneralRe: Defining Global Variable Pin
ariez78631-Dec-08 21:00
ariez78631-Dec-08 21:00 
AnswerRe: Defining Global Variable Pin
Vikram A Punathambekar13-Dec-05 21:32
Vikram A Punathambekar13-Dec-05 21:32 
QuestionCustom window in C# Pin
CoolASL13-Dec-05 18:35
CoolASL13-Dec-05 18:35 
AnswerRe: Custom window in C# Pin
MarcelErz13-Dec-05 21:34
MarcelErz13-Dec-05 21:34 
GeneralRe: Custom window in C# Pin
CoolASL13-Dec-05 22:15
CoolASL13-Dec-05 22:15 
GeneralRe: Custom window in C# Pin
MarcelErz13-Dec-05 22:32
MarcelErz13-Dec-05 22:32 

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.