salam om, sakarang saya akan memberi tutorial "Cara Membuat Browser dengan VB6"
Syarat membuat Web Browser :
1. Sediakan Makanan Ringan
2-3 pikir ndiri :v
4. Harus punya VB6 , Full maupun Portable. Kalo belum punya Visual Basic 6, bisa Cari di Indowebster.
Langkah2 membuat Web Browser ala Yudhistira Mawardi :
1. Buka Visual Basic 6 nya. Trus pilih Standard EXE.
2. Klik Kanan Pada ToolBox, Kemudian pilih Components atau tekan key Ctrl + T .
3. Kemudian Centang Microsoft html object library, Microsoft internet controls, Microsoft Windows common Controls 5.0 atau 6.0 sama saja.
4. Buat 5 Command Buton, 1 Text Box , 1Label, 1 Webbrowser , 1 Proggress Bar. Saran saya tata Seperti Gambar di bawah.
CommandButton Captionnya saya ganti dengan Back, Forward, Refresh, Stop dan Go.
Label Captionnya saya ganti Done
TextBox Text kalau bisa Kosong aja.
5. Sekarang Masukkan kode kode berikut, caranya doble klik pada tool / tombol yang sudah kita buat.
1. BackOn Error Resume NextWebBrowser1.GoBack2. ForwardOn Error Resume NextWebBrowser1.GoForward3.RefreshOn Error Resume NextWebBrowser1.Refresh4.StopOn Error Resume NextWebBrowser1.Stop5.GOOn Error Resume NextWebBrowser1.Navigate Text1.Text
6. Progress Bar. Langsung Copy dan Paste Code ini pada Form CodePrivate Sub WebBrowser1_ProgressChange(ByVal Progress As Long, ByVal ProgressMax As Long)On Error Resume NextIf Progress = -1 Then ProgressBar1.Value = 100Label1.Caption = "Done"ProgressBar1.Visible = FalseIf Progress > 0 And ProgressMax > 0 ThenProgressBar1.Visible = TrueImage1.Visible = FalseProgressBar1.Value = Progress * 100 / ProgressMaxLabel1.Caption = "Loading " & Int(Progress * 100 / ProgressMax) & "%"End IfExit SubEnd Sub
7.Resize Form. Langsung Copy dan Paste Code ini pada Form Code
Private Sub Form_Resize()
On Error Resume NextWebBrowser1.Width = Me.ScaleWidthWebBrowser1.Height = Me.ScaleHeight - 1680End Sub
6. Coba Jalankan Programnya Run > Start atau F5. Bila anda menemui error Silahkah komen, pasti ane jawab :)
7. Kalau sudah tak tampak error. Langsung pilih File > Make Project1.exe.
8. Finish ^^
Kalau Program sudah jadi akan terlihat seperti ini :

Gan recuset dong
ReplyDeleteGmn cara buat sofware tunneling yg Bitvise+Proxifier?