Private Sub Form_Load1
Label4.FontSize = 20 Label4 = Gambar Alat Musik
WindowsMediaPlayer2.Close End Sub
6. Makanan Khas
Dim gambar As Integer Private Sub Form_Load
gambar = 1 Image1.Picture = LoadPictureApp.Path \gambar\indekss gambar .jpg
WindowsMediaPlayer2.URL = video\form9.amr End Sub
Private Sub Timer2_Timer gambar = gambar + 1
If gambar 3 Then gambar = 1 Image1.Picture = LoadPictureApp.Path \gambar\indekss gambar .jpg
End Sub
Private Sub Image2_Click
Form11.Show WindowsMediaPlayer2.Close
End Sub
Private Sub Image3_Click
Form8.Show WindowsMediaPlayer2.Close
End Sub
Private Sub Form_Load1
Label3.FontSize = 20 Label3 = Makanan Khas Daerah
End Sub
Private Sub Image9_Click
Form2.Show WindowsMediaPlayer2.Close
End Sub
Private Sub Timer1_Timer
Label3.ForeColor = RGBRnd 250, Rnd 250, Rnd 250 If Label3.Left + Label3.Width = 0 Then
Label3.Left = Me.Width End If
Label3.Left = Label3.Left - 100 End Sub
Universitas Sumatera Utara Universitas Sumatera Utara
Private Sub Command1_Click
Form10.Show WindowsMediaPlayer2.Close
End Sub
Menu Makanan Khas 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 Command1_Click
Form4.Show WindowsMediaPlayer2.Close
End Sub Private Sub Command2_Click
Form2.Show WindowsMediaPlayer2.Close
End Sub 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 Image5.Picture = LoadPictureApp.Path \gambar\ Adodc1.Recordsetgambar
End Sub
Universitas Sumatera Utara Universitas Sumatera Utara
Private Sub Form_Load
If Not openconn Then End Adodc1.ConnectionString = strconnect
Adodc1.RecordSource = SELECT from makanankhas adodc1.refresh
DataGrid1.AllowUpdate = False Set DataGrid1.DataSource = Adodc1
Image5.Picture =
LoadPictureApp.Path \gambar\
Adodc1.Recordsetgambar WindowsMediaPlayer2.URL = video\form10.amr
End Sub
Private Sub Image10_Click
Form2.Show WindowsMediaPlayer2.Close
End Sub
Private Sub Image2_Click
Form9.Show WindowsMediaPlayer2.Close
End Sub
Private Sub Form_Load1
Label3.FontSize = 20 Label3 = Makanan Khas Daerah
End Sub
Private Sub Timer1_Timer
Label3.ForeColor = RGBRnd 250, Rnd 250, Rnd 250 If Label3.Left + Label3.Width = 0 Then
Label3.Left = Me.Width End If
Label3.Left = Label3.Left - 100 End Sub
7. Tari Tradisional