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 “UIN” dan “Jl.HR.SUBRANTAS”
- Saat menklik tombol Exit form ditutup
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 = "JUNED"
Text2.Text = "PEKANBARU"
End Sub
Private Sub Command2_Click()
Text1.Text = "UIN"
Text2.Text = "Jl.HR.SUBRANTAS"
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Artikel Terkait:
0 komentar:
Posting Komentar