Sabtu, 20 Maret 2010

Form About ala Windows

Kode berikut ini akan memunculkan Form About sama seperti aplikasi bawaan Windows ex: Notepad. Sehingga aplikasi Anda seakan-akan merupakan aplikasi buatan Windows.

[ VB 6.0 ]
Pada bagian '(Declarations)' dari Form ketikkan :
Private Declare Function ShellAbout Lib "shell32.dll" Alias "ShellAboutA" (ByVal hWnd As Long, ByVal szApp As String, ByVal szOtherStuff As String, ByVal hIcon As Long) As Long
Untuk memanggilnya ketikkan :
ShellAbout Me.hWnd, "Nama Aplikasi", "Deskripsi", Me.Icon


[ VB .NET ]
Pada bagian '(Declarations)' dari Form ketikkan :
Private Declare Function ShellAbout Lib "shell32.dll" Alias "ShellAboutA" (ByVal hWnd As Integer, ByVal szApp As String, ByVal szOtherStuff As String, ByVal hIcon As Integer) As Integer
Untuk memanggilnya ketikkan :
ShellAbout(Me.Handle.ToInt32, "Nama Aplikasi", "Deskripsi", Me.Icon.Handle.ToInt32)

Label: , , ,

0 Komentar:

Posting Komentar

Pengunjung yang baik selalu meninggalkan jejak berupa komentar. :)

Berlangganan Posting Komentar [Atom]

<< Beranda