Form Resep Masakan Form Nama dan Bahan Masakan

LISTING PROGRAM

1. Form Resep Masakan

Private Sub about_Click frmabout.Show End Sub Private Sub help_Click frmhelp.Show End Sub Private Sub namacara_Click frmnamacara.Show End Sub Private Sub inputcara_Click frmlogin1.Show End Sub Private Sub keluar_Click End End Sub Private Sub namabahan_Click frmnamabahan.Show End Sub Private Sub inputbahan_Click frmlogin.Show End Sub Private Sub Timer1_Timer lbl1.Left = lbl1.Left - 20 If lbl1.Left = -3015 Then lbl1.Left = Me.Width End If Dim i As Long Dim merah As Integer, hijau As Integer, biru As Integer i = i + 1 If i = 1000000 Then i = 0 merah = Int255 Rnd hijau = Int255 Rnd biru = Int255 Rnd lbl1.ForeColor = RGBpink, yellow, merah lbl2.ForeColor = RGBblue, hijau, orange If i Mod 2 = 0 Then lbl1.Visible = True Else lbl1.Visible = True End If End Sub Universitas Sumatera Utara Private Sub Timer2_Timer Dim i As Long Dim merah As Integer, hijau As Integer, biru As Integer i = i + 1 If i = 1000000 Then i = 0 merah = Int500 Rnd hijau = Int500 Rnd biru = Int500 Rnd lbl2.ForeColor = RGByellow, hijau, merah lbl2.ForeColor = RGBbiru, hijau, pink If i Mod 2 = 0 Then lbl2.Visible = True Else lbl2.Visible = True End If End Sub

2. Form Nama dan Bahan Masakan

Private Sub cmdcari_Click Dim Istilah, Makna As String ListView1.ListItems.Clear txtistilah = UCase txtistilah Open DATARESEP.DAT For Input As 1 Do Until EOF1 Input 1, Istilah, Makna If UCaseIstilah Like txtistilah Then Set LI = ListView1.ListItems.Add, , Istilah LI.SubItems1 = Makna End If Loop Close 1 End Sub Private Sub cmdhapus_Click txtistilah.Text = txtistilah.SetFocus End Sub Private Sub cmdkembali_Click frmnamabahan.Hide frmresep.Show txtistilah.Text = End Sub Private Sub Command1_Click frmmenumasakan.Show End Sub Private Sub Form_Load Dim LI As ListItem ListView1.View = lvwReport ListView1.Sorted = True Universitas Sumatera Utara ListView1.GridLines = True ListView1.ColumnHeaders.Add , , Nama Masakan, ListView1.Width 3 ListView1.ColumnHeaders.Add , , Bahan Masakan, ListView1.Width 0.1 End Sub

3. Form Nama dan Cara Memasak