How to display a value in binary format in a textbox  
Author Message
danych





PostPosted: Visual C# Language, How to display a value in binary format in a textbox Top

Hi all, is there any way to get values in a binary format

regards




Visual C#3  
 
 
Sagitt





PostPosted: Visual C# Language, How to display a value in binary format in a textbox Top

As long as the value that you want to display as binary is an integer type (short, long, int, byte) then you can do:

txtFieldInBinary.Text = Convert.ToString(valueToDisplayAsBinary, 2);


 
 
danych





PostPosted: Visual C# Language, How to display a value in binary format in a textbox Top

10x very much for ur help