| | |
Semi Transparrent Forms
Thread Solved |
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Public Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long Public Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long Public Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hwnd As Long, ByVal crKey As Long, ByVal bAlpha As Long, ByVal dwFlags As Long) As Long Public Const LWA_ALPHA = &H2& Public Const GWL_EXSTYLE = (-20) Public Const WS_EX_LAYERED = &H80000 Public Sub Phantomize_Window(hwnd As Long, bytOpacity) 'phantomize window Dim buf As String * 1024 Call SetWindowLong(hwnd, GWL_EXSTYLE, GetWindowLong(hwnd, GWL_EXSTYLE) Or WS_EX_LAYERED) Call SetLayeredWindowAttributes(hwnd, 0, bytOpacity, LWA_ALPHA) End Sub
Phantomize_Window Me.hwnd, 65 Last edited by Comatose; Jul 19th, 2006 at 7:56 pm.
![]() |
Similar Threads
- Forms in Random access files (Visual Basic 4 / 5 / 6)
- Forms authorization, only want a few links (ASP.NET)
- Identification of Web Forms (ASP.NET)
- Hotmail and Submitting Forms (Web Browsers)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Selection.End(xlDown).Select
- Next Thread: Please Help me in learning
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






