VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Make your Form transparent.(This works perfectly)

Martin Anbu Selvan  (18 Submissions)   Custom Controls/Forms/Menus   VB 6.0   Unknown Difficulty   Wed 28th April 2004   Mon 8th February 2021

Make your Form transparent.(This works perfectly)

API Declarations


'[email protected]

Option Explicit
Private Declare Function CreateRectRgn Lib "gdi32" (ByVal X1 As Long, _
ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long
Private Declare Function CombineRgn Lib "gdi32" (ByVal hDestRgn As _
Long, ByVal hSrcRgn1 As Long, ByVal hSrcRgn2 As Long, ByVal _
nCombineMode As Long) As Long
Private Declare Function SetWindowRgn Lib "user32" (ByVal hWnd As _
Long, ByVal hRgn As Long, ByVal bRedraw As Long) As Long

Public Sub TransparentForm(frm As Form)
frm.ScaleMode = vbPixels
Const RGN_DIFF = 4
Const RGN_OR = 2

Dim outer_rgn As Long
Dim inner_rgn As Long
Dim wid As Single
Dim hgt As Single
Dim border_width As Single
Dim title_height As Single
Dim ctl_left As Single
Dim ctl_top As Single
Dim ctl_right As Single
Dim ctl_bottom As Single
Dim control_rgn As Long
Dim combined_rgn As Long
Dim ctl As Control


Rate Make your Form transparent.(This works perfectly) (1(1 Vote))
Make your Form transparent.(This works perfectly).bas

Make your Form transparent.(This works perfectly) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters