by Lionheart (1 Submission)
Category: Graphics
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 4th November 2005
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Make form transparent with a simple code
API Declarations
Private Declare Function SetWindowRgn Lib "user32" Alias "SetWindowRgn" (ByVal hWnd As Long, ByVal hRgn As Long, ByVal bRedraw As Boolean) As Long
Dim leon as long
dim tidus as long
dim yuna as long
yuna = (me.height/ screen.twipsperpixelY) + 2000
leon = OffSetClipRgn(me.hdc,tidus,yuna)
SetWindowRgn (me.hwnd,leon,true)