This Visual Basic code defines a form with a button and two radio buttons. When the button is clicked, it gets a string from an input box and either converts each character to its ASCII code value and displays it, or converts the displayed ASCII codes back to a string, depending on which radio button is checked.
This Visual Basic code defines a form with a button and two radio buttons. When the button is clicked, it gets a string from an input box and either converts each character to its ASCII code value and displays it, or converts the displayed ASCII codes back to a string, depending on which radio button is checked.
This Visual Basic code defines a form with a button and two radio buttons. When the button is clicked, it gets a string from an input box and either converts each character to its ASCII code value and displays it, or converts the displayed ASCII codes back to a string, depending on which radio button is checked.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button1.Click Dim message As String = InputBox("String", "test") Dim nmessage As String = "" For Each c As Char In message If RadioButton1.Checked Then nmessage = nmessage + AscW(c).ToString + " " Label1.Text = nmessage Else nmessage = Label1.Text Label1.Text = ChrW(nmessage) End If