Jumat, 29 Januari 2010

Source Code Menampilkan Screensaver di VB 6

                   Untuk menampilkan screensaver ketika form di load sangat mudah, caranya:
         1. Buat 1 project baru
         2. Buat 1 form.
Copy paste kode dibawah ini:

Option Explicit
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Any) As Long

          Const SC_SCREENSAVE = &HF140&
          Const MON_OFF = 2&
          Const WM_SYSCOMMAND = &H112


Private Sub Form_Load()
SendMessage Me.hwnd, WM_SYSCOMMAND, SC_SCREENSAVE, Monochrome

End Sub

0 comments:

Posting Komentar

Twitter Delicious Facebook Digg Stumbleupon Favorites More

Enter your email address to subscribe:

Delivered by FeedBurner

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | SharePoint Demo