Cry Ant Crew
Would you like to react to this message? Create an account in a few clicks or log in to continue.


We are Just Computer Freaker
 
IndeksPencarianLatest imagesPendaftaranLogin
Login
Username:
Password:
Login otomatis: 
:: Lupa password?

 

 Membuat Form Transparant di VB6

Go down 
PengirimMessage
Mhc_Shadow
Neophyte
Neophyte



Jumlah posting : 156
Join date : 10.04.11

Membuat Form Transparant di VB6 Empty
PostSubyek: Membuat Form Transparant di VB6   Membuat Form Transparant di VB6 EmptyWed 12 Oct 2011 - 22:56

Buat project baru dengan standard application

bikin 1 form << jelas

kemudian isikan form tsb dengan code berikut

Code:
Option Explicit

Private Const WS_EX_LAYERED = &H80000
Private Const GWL_EXSTYLE = (-20)
Private Const LWA_COLORKEY = &H1
Private Const LWA_ALPHA = &H2

Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hwnd As Long, ByVal crColor As Long, ByVal nAlpha As Byte, ByVal dwFlags As Long) As Long

Private Sub Form_Load()
Call SetWindowLong(Me.hwnd, GWL_EXSTYLE, GetWindowLong(Me.hwnd, GWL_EXSTYLE) Or WS_EX_LAYERED)
Call SetLayeredWindowAttributes(Me.hwnd, RGB(255, 0, 255), 128, LWA_ALPHA Or LWA_COLORKEY)
End Sub

untuk ketajaman warna bisa diganti sesuai selera di SetLayeredWindowAttributes

Selamat Mencoba
Kembali Ke Atas Go down
 
Membuat Form Transparant di VB6
Kembali Ke Atas 
Halaman 1 dari 1
 Similar topics
-
» Cara Membuat Form Berlangganan
» Cara membuat Form "Email Subscriber" / "Berlangganan Lewat Email"
» Windows 7 Transparant's Frame ( Windows 7 Toolkit)
» Membuat Progres Bar di VB6
» Membuat Hiren Boot UFD

Permissions in this forum:Anda tidak dapat menjawab topik
Cry Ant Crew :: Information Technology :: Programming :: Visual Basic-
Navigasi: