hi i am creating a program in vb.net which display decimal, octal, hexadecimal, binary in textbox...i was hopeing me if someone can give a start...im completely new to vb
thks you

Recommended Answers

All 5 Replies

Dim no = 456
Dim bin=Convert.ToString(no, 2) '<-----Convert.ToString(value,radix)
Dim oct=Convert.ToString(no, 8) '<-----Convert.ToString(value,radix)

thks

how can i displays in a textbox?? still lost ......

anyone know how can i display decimal octal hexadecimal , binary number in the textbox...do i hve to type all those numbers frm 1 through 255 manually or is there code to it

This is what i got so for decimal number , still code doesnt kind of work help plz


Public Class Form1
Dim no = 456
Dim bin = Convert.ToString(no, 2) '<-----Convert.ToString(value,radix)
Dim oct = Convert.ToString(no, 8) '<-----Convert.ToString(value,radix)
Private Sub doloopwhile_load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim counter As Integer = 1 'decimal number
Do
outputtxtdisply.text& = counter & ""
counter += 1
Loop While counter > 255

End Sub

Private Sub txtdisplay_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtdisplay.TextChanged

End Sub
End Class

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.