1. Klik Start lalu pilih Microsoft Visual Studio 2008
2. Lalu akan muncul jendela awal Microsoft Visual Studio seperti di bawah ini.
3. Lalu pilih New Project dan beri nama serta pilih tempat folder untuk menyimpannya.
4. Kemudian buat form sesuai dengan form di bawah ini.
5. Berikut ini adalah rumus untuk menjalankan form di atas.
Public Class Latihan_05_36110048
Private Sub ANALIZING_36110048_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ANALIZING_36110048.Click
If DOB_36110048.Value.Day >= 22 And DOB_36110048.Value.Month = 12 Or DOB_36110048.Value.Day <= 19 And DOB_36110048.Value.Month = 1 Then
BINTANG_36110048.Text = "capricorn"
KERTAS_36110048.Text = "gak kenapa-kenapa"
ElseIf DOB_36110048.Value.Day >= 20 And DOB_36110048.Value.Month = 1 Or DOB_36110048.Value.Day <= 18 And DOB_36110048.Value.Month = 2 Then
BINTANG_36110048.Text = "aquarius"
KERTAS_36110048.Text = "suka minum air"
ElseIf DOB_36110048.Value.Day >= 19 And DOB_36110048.Value.Month = 2 Or DOB_36110048.Value.Day <= 20 And DOB_36110048.Value.Month = 3 Then
BINTANG_36110048.Text = "pisces"
KERTAS_36110048.Text = "suka marah-marah"
ElseIf DOB_36110048.Value.Day >= 21 And DOB_36110048.Value.Month = 3 Or DOB_36110048.Value.Day <= 20 And DOB_36110048.Value.Month = 4 Then
BINTANG_36110048.Text = "aries"
KERTAS_36110048.Text = "doyan nyanyi"
ElseIf DOB_36110048.Value.Day >= 21 And DOB_36110048.Value.Month = 4 Or DOB_36110048.Value.Day <= 20 And DOB_36110048.Value.Month = 5 Then
BINTANG_36110048.Text = "taurus"
KERTAS_36110048.Text = "mau diurus"
ElseIf DOB_36110048.Value.Day >= 21 And DOB_36110048.Value.Month = 5 Or DOB_36110048.Value.Day <= 20 And DOB_36110048.Value.Month = 6 Then
BINTANG_36110048.Text = "gemini"
KERTAS_36110048.Text = "maunya lebih"
ElseIf DOB_36110048.Value.Day >= 21 And DOB_36110048.Value.Month = 6 Or DOB_36110048.Value.Day <= 22 And DOB_36110048.Value.Month = 7 Then
BINTANG_36110048.Text = "cancer"
KERTAS_36110048.Text = "ada ajah"
ElseIf DOB_36110048.Value.Day >= 23 And DOB_36110048.Value.Month = 7 Or DOB_36110048.Value.Day <= 22 And DOB_36110048.Value.Month = 8 Then
BINTANG_36110048.Text = "leo"
KERTAS_36110048.Text = "suka meraum"
ElseIf DOB_36110048.Value.Day >= 23 And DOB_36110048.Value.Month = 8 Or DOB_36110048.Value.Day <= 23 And DOB_36110048.Value.Month = 9 Then
BINTANG_36110048.Text = "virgo"
KERTAS_36110048.Text = "sehat-sehat saja"
ElseIf DOB_36110048.Value.Day >= 23 And DOB_36110048.Value.Month = 9 Or DOB_36110048.Value.Day <= 23 And DOB_36110048.Value.Month = 10 Then
BINTANG_36110048.Text = "libra"
KERTAS_36110048.Text = "kurang kerjaan"
ElseIf DOB_36110048.Value.Day >= 23 And DOB_36110048.Value.Month = 10 Or DOB_36110048.Value.Day <= 21 And DOB_36110048.Value.Month = 11 Then
BINTANG_36110048.Text = "scorpio"
KERTAS_36110048.Text = "kurang makan"
ElseIf DOB_36110048.Value.Day >= 22 And DOB_36110048.Value.Month = 11 Or DOB_36110048.Value.Day <= 21 And DOB_36110048.Value.Month = 12 Then
BINTANG_36110048.Text = "sagitarius"
KERTAS_36110048.Text = "cantik deh"
End If
End Sub
Private Sub CLOSE_36110048_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles CLOSE_36110048.Click
NAMA_36110048.Text = ""
BINTANG_36110048.Text = ""
KERTAS_36110048.Text = ""
End Sub
End Class
6. Setelah itu, jalankan programnya.
0 komentar:
Posting Komentar