GhOsT Administrator


Data inscrierii: 26/Noi/2007 Mesaje: 234
|
Trimis: 16/12/2007 23:18 Titlul subiectului: [VB6] Semi-Transparent Form |
|
|
Add To Declarations:
| Cod: |
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 |
This should be your Form_Load:
| Cod: |
Private Sub Form_Load()
SetWindowLong Me.hWnd, (-20), &H80000
SetLayeredWindowAttributes Me.hWnd, 0, 200, &H2
End Sub |
[/img] |
|