Quick google search revealed this:
You'll obviously want to use base 2 for binary.Code:int i = 100; string str = Convert.ToString(i, base); //base = 2, 8,10 or 16
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 3 of 3
Thread: How to print Binary digitThreaded View
|
Click Here to Expand Forum to Full Width |