pertama buat form seperti diatas, lalu ketikan kode nya
Public Class Form2
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'DEKLARAS VARIABLE
Dim PANJANG, LEBAR, LUAS As Integer
PANJANG = TextBox1.Text
LEBAR = TextBox2.Text
'PROSES HITUNG
LUAS = PANJANG * LEBAR
TextBox3.Text = LUAS
End Sub
End Class
Sign up here with your email