Membuat Command Button Bergerak Mengikuti Kursor Mouse

Trik sederhana berikut.. Adalah membuat Object Atau Dalam percobaan ini kita gunakan object (Command Button) bergerak mengikuti gerakan kursor mouse kita.

Image

copikan code berikut pada jendela Source

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As   Single)
Command1.Left = X
Command1.Top = Y
End Sub

#selamat mencoba dan berkreasi😀

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s