Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim i, sum As Integer TextBox1.Text = ""
For i = 1 To 12
sum = 2 * i
TextBox1.Text += "2 x " & i.ToString & " = " & sum.ToString & vbNewLine
Next
End Sub
รบกวนด้วยนะค่ะ
ช่วยแปลภาษา VB ให้หน่อยค่ะ
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim i, sum As Integer TextBox1.Text = ""
For i = 1 To 12
sum = 2 * i
TextBox1.Text += "2 x " & i.ToString & " = " & sum.ToString & vbNewLine
Next
End Sub
รบกวนด้วยนะค่ะ