'Bu
kodları form a yapıştırın Artık formdaki Siyah yerler görünmez
olacaktır..Form Borderstyle ni=0 yaparsanız.Formunuz
hazırdır..yukardaki vbBlack yerine vbRed yazarsak kırmızı renkler
görünmeyecektir..Gerisi kolay..
'VB6.0 içindir
Const LWA_COLORKEY = &H1
Const LWA_ALPHA = &H2
Const GWL_EXSTYLE = (-20)
Const WS_EX_LAYERED = &H80000
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 crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long
Private Sub Form_Load()
Dim Ret As Long
Const MyColorKey = vbBlack 'siyah yerleri siler
Ret = GetWindowLong(Me.hwnd, GWL_EXSTYLE)
Ret = Ret Or WS_EX_LAYERED
SetWindowLong Me.hwnd, GWL_EXSTYLE, Ret
SetLayeredWindowAttributes Me.hwnd, MyColorKey, 0, LWA_COLORKEY
End Sub
KADİR SELEN