1. Buat sebuah label pada Form yang anda inginkan, lalu beri nama label tersebut, misalnya dengan nama lblContoh.
2. Lalu masuk ke jendela visual basic editor dari form tersebut dan masukkan code berikut ini :
Private strText As String
Private Static Function TeksBerjalan() As String
Dim intTeks As Integer
Dim TextLen As Integer
intTeks = intTeks + 1
TextLen = Len(strText)
If intTeks >= TextLen Then intTeks = 1
TeksBerjalan = Mid([strText], intTeks, Len([strText])) & Left([strText], intTeks)
End Function
3. Lalu pada properti dari form tersebut, atur Timer Intervalnya, disini penulis masukkan angka 150
4. Lalu pada event On Timer, pilih [Event Procedure], dan masukkan code berikut ini :
strText = "NUGIE-SUKASUKA.BLOGSPOT.COM - " (masukkan teks sesuai keinginan anda)
Me.lblContoh.Caption = TeksBerjalan
5. Sehingga code anda akan terlihat seperti dibawah ini :
Option Compare Database
Option Explicit
Private strText As String
Private Static Function TeksBerjalan() As String
Dim intTeks As Integer
Dim TextLen As Integer
intTeks = intTeks + 1
TextLen = Len(strText)
If intTeks >= TextLen Then intTeks = 1
TeksBerjalan = Mid([strText], intTeks, Len([strText])) & Left([strText], intTeks)
End Function
Private Sub Form_Timer()
strText = "NUGIE-SUKASUKA.BLOGSPOT.COM - "
Me.lblContoh.Caption = TeksBerjalan
End Sub
6. Klik Save, lalu test form tersebut
Untuk file contohnya bisa anda download dari sini.
Semoga Berhasil
Semoga Bermanfaat...


20.34
Gie Satria
