Private Sub Form_Load
Label1.FontSize = 20 Label1 = Lagu Daerah
WindowsMediaPlayer2.URL = video\form14.amr End Sub
Private Sub Image4_Click
Form13.Show WindowsMediaPlayer2.Close
End Sub
Private Sub Image7_Click
Form2.Show WindowsMediaPlayer2.Close
End Sub
Private Sub Timer1_Timer
Label1.ForeColor = RGBRnd 250, Rnd 250, Rnd 250 If Label1.Left + Label1.Width = 0 Then
Label1.Left = Me.Width End If
Label1.Left = Label1.Left - 100 End Sub
9. Bahasa
Private Sub Command1_Click
Form16.Show WindowsMediaPlayer2.Close
End Sub
Private Sub Form_Load
Label4.FontSize = 20 Label4 = BAHASA
WindowsMediaPlayer2.URL = video\form15.amr End Sub
Private Sub Image10_Click
Form2.Show WindowsMediaPlayer2.Close
End Sub
Private Sub Image2_Click
Form17.Show WindowsMediaPlayer2.Close
End Sub
Universitas Sumatera Utara Universitas Sumatera Utara
Private Sub Image3_Click
Form14.Show WindowsMediaPlayer2.Close
End Sub
Private Sub Timer1_Timer
Label4.ForeColor = RGBRnd 250, Rnd 250, Rnd 250 If Label4.Left + Label4.Width = 0 Then
Label4.Left = Me.Width End If
Label4.Left = Label4.Left - 100 End Sub
Menu Bahasa Daerah
Option Explicit Dim conn As New ADODB.Connection
Dim strconnect As String Function openconn As Boolean
On Error GoTo ErrHandler strconnect = provider=Microsoft.Jet.OLEDB.4.0;Data Source= + App.Path +
\Database3.mdb If conn.State = adStateOpen Then
conn.Close Set conn = New ADODB.Connection
conn.Open strconnect openconn = True
Else conn.Open strconnect
openconn = True End If
Exit Function ErrHandler:
openconn = False MsgBox koneksi tidak bisa dibuka, vbExclamation, koneksi error
End Function Private Sub DataGrid1_RowColChangeLastRow As Variant, ByVal LastCol As
Integer With Adodc1.Recordset
Text1.Text = .Fields.Item0.Value Text2.Text = .Fields.Item1.Value
End With End Sub
Universitas Sumatera Utara Universitas Sumatera Utara
Private Sub Form_Load
Label1.FontSize = 20 Label1 = BAHASA
WindowsMediaPlayer2.URL = video\form16.amr End Sub
Private Sub Timer1_Timer
Label1.ForeColor = RGBRnd 250, Rnd 250, Rnd 250 If Label1.Left + Label1.Width = 0 Then
Label1.Left = Me.Width End If
Label1.Left = Label1.Left - 100 End Sub
Private Sub Image10_Click
Form2.Show WindowsMediaPlayer2.Close
End Sub
Private Sub Image12_Click
Form15.Show WindowsMediaPlayer2.Close
End Sub
10. Agama
Dim gambar As Integer Private Sub Form_Load
gambar = 1 Image1.Picture = LoadPictureApp.Path \gambar\images gambar .jpg
WindowsMediaPlayer2.URL = video\form17.amr End Sub
Private Sub Timer2_Timer
gambar = gambar + 1 If gambar 6 Then gambar = 1
Image1.Picture = LoadPictureApp.Path \gambar\images gambar .jpg End Sub
Private Sub Image10_Click
Form2.Show WindowsMediaPlayer2.Close
End Sub
Private Sub Image3_Click
Form16.Show WindowsMediaPlayer2.Close
End Sub
Universitas Sumatera Utara Universitas Sumatera Utara
Private Sub Image4_Click
Form19.Show WindowsMediaPlayer2.Close
End Sub
Private Sub Form_Load1
Label1.FontSize = 20 Labe1 = Agama
End Sub
Private Sub Timer1_Timer
Label1.ForeColor = RGBRnd 250, Rnd 250, Rnd 250 If Label1.Left + Label1.Width = 0 Then
Label1.Left = Me.Width End If
Label1.Left = Label1.Left - 100 End Sub
Private Sub Command1_Click
Form18.Show WindowsMediaPlayer2.Close
End Sub
Menu Agama
Option Explicit Dim conn As New ADODB.Connection
Dim strconnect As String Function openconn As Boolean
On Error GoTo ErrHandler strconnect = provider=Microsoft.Jet.OLEDB.4.0;Data Source= + App.Path +
\Database3.mdb If conn.State = adStateOpen Then
conn.Close Set conn = New ADODB.Connection
conn.Open strconnect openconn = True
Else conn.Open strconnect
openconn = True End If
Exit Function ErrHandler:
openconn = False MsgBox koneksi tidak bisa dibuka, vbExclamation, koneksi error
End Function
Universitas Sumatera Utara Universitas Sumatera Utara
Private Sub DataGrid1_RowColChangeLastRow As Variant, ByVal LastCol As Integer
With Adodc1.Recordset Text1.Text = .Fields.Item0.Value
Text2.Text = .Fields.Item1.Value End With
End Sub
Private Sub Form_Load
Label1.FontSize = 20 Label1 = AGAMA
WindowsMediaPlayer2.URL = video\form18.amr End Sub
Private Sub Image4_Click
Form17.Show WindowsMediaPlayer2.Close
End Sub
Private Sub Image5_Click
Form2.Show WindowsMediaPlayer2.Close
End Sub
Private Sub Timer1_Timer
Label1.ForeColor = RGBRnd 250, Rnd 250, Rnd 250 If Label1.Left + Label1.Width = 0 Then
Label1.Left = Me.Width End If
Label1.Left = Label1.Left - 100 End Sub
11. About me