Mohon tunggu...
Wawan Supriadi
Wawan Supriadi Mohon Tunggu... lainnya -

LAHIR DI SUMEDANG TANGGAL 20 NOVEMBER 1966 -. PERNAH JADI GURU DI SMP DAN SMK SEJAK TAHUN 1988 SAMPAI TAHUN 2013. PROGRAMMER DI RSU KABUPATEN SUMEDANG - SENANG MEMPELAJARI SOFTWARE 3D ANIMATION E-Mail wulansoft.computindo@gmail.com Website :http://rsudsumedang.com

Selanjutnya

Tutup

Nature Artikel Utama

VB6: Source Code Bell Otomatis

26 Desember 2010   09:09 Diperbarui: 26 Juni 2015   10:23 4529
+
Laporkan Konten
Laporkan Akun
Kompasiana adalah platform blog. Konten ini menjadi tanggung jawab bloger dan tidak mewakili pandangan redaksi Kompas.

TaskDialog.MainInstructionText = "PERUBAHAN DATA" TaskDialog.ContentText = "Hari : " & Combo1.Text & Chr(13) & "Uraian : " & PT1.Text & Chr(13) & "Jam : " & ME1.Text & Chr(13) & "Suara : " & PT2.Text & Chr(13) & Chr(13) & "Perubahan Data Sudah Benar ?" TaskDialog.AddButton "Ya, Sudah Benar", 104 TaskDialog.AddButton "Belum Benar", 999 TaskDialog.ShowDialog

End If

End Sub

Private Sub PushButton3_Click()

Pesan TaskDialog.MainInstructionText = "HAPUS DATA" TaskDialog.ContentText = "Hari : " & Combo1.Text & Chr(13) & "Uraian : " & PT1.Text & Chr(13) & "Jam : " & ME1.Text & Chr(13) & "Suara : " & PT2.Text & Chr(13) & Chr(13) & "Anda Yakin Data Ini Akan Dihapus ?" TaskDialog.AddButton "Ya, Hapus", 105 TaskDialog.AddButton "Jangan", 99 TaskDialog.ShowDialog

End Sub

Private Sub PushButton4_Click()

Me.WindowState = 1 Me.Hide

End Sub

Private Sub PushButton5_Click()

Pesan

TaskDialog.MainInstructionText = "KELUAR DARI PROGRAM" TaskDialog.ContentText = "Anda Akan Keluar dari Program Bell Otomatis ?" TaskDialog.AddButton "Ya", 101 TaskDialog.AddButton "Tidak", 999

TaskDialog.ShowDialog

End Sub

Private Sub PushButton6_Click()

On Error Resume Next fShortName = GetShortName(File1.Path & "" & File1.FileName) mciSendString "close all", vbNullString, 0, 0 mciSendString "open " & fShortName & " type MPEGVideo style child alias mpeg parent " & Me.hwnd, vbNullString, 0, 0 mciSendString "status mpeg length", TrackLength, Len(TrackLength), 0 mciSendString "put mpeg window at 208 20 793 595", 0&, 0, 0 mciSendString "set window show maximized", vbNullString, 0, 0 mciSendString "play mpeg", vbNullString, 0, 0 Slider1.Max = CLng(TrackLength) Slider1.TickFrequency = CLng(TrackLength) / 100 'slider1.Max = CLng(TrackLength) 'Label4.Caption = File1.Filename Timer2.Enabled = True

End Sub

Private Sub PushButton7_Click()

Bersih Tutup PushButton1.Caption = "Tambah" PushButton2.Caption = "Ubah" PushButton7.Enabled = False

End Sub

Private Sub PushButton8_Click()

On Error Resume Next fShortName = GetShortName(File1.Path & "pembuka.wav") mciSendString "close all", vbNullString, 0, 0 mciSendString "open " & fShortName & " type MPEGVideo style child alias mpeg parent " & Me.hwnd, vbNullString, 0, 0 mciSendString "status mpeg length", TrackLength, Len(TrackLength), 0 mciSendString "put mpeg window at 208 20 793 595", 0&, 0, 0 mciSendString "set window show maximized", vbNullString, 0, 0 mciSendString "play mpeg", vbNullString, 0, 0 Slider1.Max = CLng(TrackLength) Slider1.TickFrequency = CLng(TrackLength) / 100 'slider1.Max = CLng(TrackLength) 'Label4.Caption = File1.Filename Timer2.Enabled = True End Sub

Private Sub PushButton9_Click()

On Error Resume Next fShortName = GetShortName(File1.Path & "tutup.wav") mciSendString "close all", vbNullString, 0, 0 mciSendString "open " & fShortName & " type MPEGVideo style child alias mpeg parent " & Me.hwnd, vbNullString, 0, 0 mciSendString "status mpeg length", TrackLength, Len(TrackLength), 0 mciSendString "put mpeg window at 208 20 793 595", 0&, 0, 0 mciSendString "set window show maximized", vbNullString, 0, 0 mciSendString "play mpeg", vbNullString, 0, 0 Slider1.Max = CLng(TrackLength) Slider1.TickFrequency = CLng(TrackLength) / 100 'slider1.Max = CLng(TrackLength) 'Label4.Caption = File1.Filename Timer2.Enabled = True End Sub

Private Sub RadioButton1_Click(Index As Integer)

SaveSetting App.Title, "Settings", "Pilih", RadioButton1(0).Value Form_Load

End Sub

Private Sub TaskDialog_ButtonClicked(ByVal Id As Long, CloseDialog As Variant)

Dim Urutan As String

If Id = 105 Then

Me.Enabled = True

Set Con2 = New Recordset

HALAMAN :
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
Mohon tunggu...

Lihat Konten Nature Selengkapnya
Lihat Nature Selengkapnya
Beri Komentar
Berkomentarlah secara bijaksana dan bertanggung jawab. Komentar sepenuhnya menjadi tanggung jawab komentator seperti diatur dalam UU ITE

Belum ada komentar. Jadilah yang pertama untuk memberikan komentar!
LAPORKAN KONTEN
Alasan
Laporkan Konten
Laporkan Akun