battle programming a forum for elite programmers with extreme will power to sharpen theire skills
 
HomeSearchRegisterLog in
Share
 

 vb.net convert to binary

Go down 
AuthorMessage
Moti Barski
super
super
Moti Barski

Posts : 415
Join date : 2011-08-02

vb.net convert to binary Empty
PostSubject: vb.net convert to binary   vb.net convert to binary EmptyThu Apr 27, 2017 7:48 am

Code:
Public Class Form1
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim i As Integer = 512
        Dim s As String = Convert.ToString(i, 2).PadLeft(8, "0"c) '32 bits
        MsgBox(s)
    End Sub
End Class

_________________
MB over and out emp it up
Back to top Go down
 
vb.net convert to binary
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
battle programmers alliance :: battle programming alliance :: battle programming-
Jump to: