Modul VB – Latihan About Me


Soal VB

Buat Program About Me menggunakan Visual Basic, dengan tampilan sebagai berikut:`

  • Saat megklik tombol Me akan tampil Nama dan Alamat anda
  • Saat mengklik tombl My Campus akan tampil “UPY” dan “Jl. PGRI Sonosewu”
  • Saat menklik tombol Exit form ditutup
Modul VB - Form About Me

Modul VB - Form About Me

Jawaban

Pengaturan Properti

Obyek Properti Pengaturan
Form Caption About Me
Label1 Caption Name
Label2 Caption Adress
Text1 Text (Kosongkan)
Text2 Text (Kosongkan)
Command1 Caption Me
Command2 Caption My Campus
Command3 Caption Exit
Private Sub Command1_Click()
Text1.Text = "Fairuz El Said"
Text2.Text = "Onggobayan Bantul"
End Sub

Private Sub Command2_Click()
Text1.Text = "UPY"
Text2.Text = "Jl. PGRI Sonosewu"
End Sub

Private Sub Command3_Click()
Unload Me
End Sub
Iklan

3 thoughts on “Modul VB – Latihan About Me

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s