HN-Community
Create Auto Copy With VB6 - Printable Version

+- HN-Community (https://hacker-newbie.org)
+-- Forum: Miscellaneous (https://hacker-newbie.org/forum-86.html)
+--- Forum: Coding/Programing (https://hacker-newbie.org/forum-19.html)
+---- Forum: Visual Basic (VB) (https://hacker-newbie.org/forum-68.html)
+---- Thread: Create Auto Copy With VB6 (/thread-12052.html)



Create Auto Copy With VB6 - UHD - 01-15-2012

Halo, ane mw share lagi tentang VB6 yah ? !
mungkin ada yang belum tw maksudnya auto copy , nih download contohnya dulu : Contoh Copy
Cara menggunakan :
. Tulis di textboxnya,
. Pencet copy, dan wala, tulisan di textbox telah tercopy secara otomatis.. ! Piktor

Tutorial membuatnya :
. Buat 1 buah CommandButton, 1 buat TextBox
. Ganti name CommandButton menjadi : cmdCopy
. Ganti name TexBox menjadi : txtTarget
. Hapus tex di texbox
. isikan kode berikut di form :
Code:
Private Sub cmdCopy_Click() Clipboard.SetText txtTarget.Text MsgBox "Text Telah berhasil disalinkan pada clipboard. =)", vbInformation, "UHD" End Sub Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer) OpenURL "http://www.uhdcode.blogspot.com", Me.hWnd End Sub

. kalo sudah add module , ganti nama module menjadi : ModBrowser . lalu masukin kode sebagai berikut :
Code:
'modul UHD Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _ (ByVal hwnd As Long, _ ByVal lpOperation As String, _ ByVal lpFile As String, _ ByVal lpParameters As String, _ ByVal lpDirectory As String, _ ByVal nShowCmd As Long) As Long Public Sub OpenURL(situs As String, sourceHWND As Long) Call ShellExecute(sourceHWND, vbNullString, situs, vbNullString, vbNullString, 1) End Sub
. Tinggal di hias deh,

Silahkan Menikmati =) Bahagia

kalo ada error comment sini aja, tapi, jangan lupa kasih SS Bahagia

Sumber : sini


RE: Create Auto Copy With VB6 - ovanIsmycode - 01-15-2012

nice share om.. Mantab
tapi bisa gak untuk auto copy saat colok fd.. biar kita bisa curi data temen.. Sinis


RE: Create Auto Copy With VB6 - Nandha689 - 01-15-2012




RE: Create Auto Copy With VB6 - UHD - 01-15-2012




RE: Create Auto Copy With VB6 - Nandha689 - 01-15-2012

kok ane gak bisa di copy ke notepad Sedih


RE: Create Auto Copy With VB6 - UHD - 01-15-2012

(01-15-2012, 05:52 PM)Nandha689 Wrote: kok ane gak bisa di copy ke notepad Sedih

coba pake contoh softnya,

monggo di download dulu...


RE: Create Auto Copy With VB6 - Nandha689 - 01-15-2012

ia ... test dulu pakai contoh soft na

lalu di paste ke notepad gak bisa Sedih


RE: Create Auto Copy With VB6 - UHD - 01-15-2012

(01-15-2012, 06:09 PM)Nandha689 Wrote: ia ... test dulu pakai contoh soft na

lalu di paste ke notepad gak bisa Sedih

maap, setelah ane coba pake soft yang udah jadi kgk bisa, tapi ane tadi sebelum build ane jalanin bisa tuh, ada masalah apa yah ? Bingung


RE: Create Auto Copy With VB6 - Nandha689 - 01-15-2012

wkwkw...

ya mungkin tuh bisa nya di paste di textbox 2

coba lu buat 1 textbox lagi

lalu klik cmdcopy na

paste kan di textbox 2 Ngakak