by Andrew Saturn (2 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 5.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (5 Votes)
This code makes the form appear "translucent", or semi-transparent, using Windows API. This isn't one of the ones which requires a ton of DLL's, however it'll only work on Windows XP or 2K (the only systems that have the API required to do this).
Assumes
This *WILL NOT* work on Windows 95, NT, 98, ME, or any other versions other than Windows 2000 -or- Windows XP. Versions that come out after XP probably will allow this to work, but nothing earlier. Don't say I should write something to allow it to work on 9x please. I know that would be cool, but it isn't very practical (just get 2k or XP if you want this that bad... honestly). There are other examples on PSC that can do it for 9x, and you will see they are very slow and don't auto-update, because they aren't truly translucent... they're just made to appear that way.
Download Form Translucency API example (WinXP/2k only) (4 KB)