0% found this document useful (0 votes)
40 views

Exercise 13

This Visual Basic code defines a class with a button click event handler that takes text from a text box, iterates through each character, concatenates the character and its ASCII code to a string, and displays the resulting string in a label.

Uploaded by

api-308657631
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views

Exercise 13

This Visual Basic code defines a class with a button click event handler that takes text from a text box, iterates through each character, concatenates the character and its ASCII code to a string, and displays the resulting string in a label.

Uploaded by

api-308657631
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles Button1.Click
Dim all As String = TextBox1.Text
Dim tracker As String = ""

For Each c As Char In all


tracker = tracker.ToString + c.ToString + " = " + Asc(c).ToString + " "

Next

Label2.Text = tracker
End Sub
End Class

You might also like