VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Make Forms Transperent revised with directcode without classess

by G.Rajeswararao (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Tue 19th December 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Make Forms Transperent revised with directcode without classess

API Declarations


setwindowlong
setwindowpos
include this code in form declaration
Const GWL_EXSTYLE = (-20)
Const WS_EX_TRANSPARENT = &H20&
Const SWP_FRAMECHANGED = &H20
Const SWP_NOMOVE = &H2
Const SWP_NOSIZE = &H1
Const SWP_SHOWME = SWP_FRAMECHANGED Or SWP_NOMOVE Or SWP_NOSIZE
Const HWND_NOTOPMOST = -2

Rate Make Forms Transperent revised with directcode without classess



Include this code in form load or activate event

SetWindowLong me.hwnd, GWL_EXSTYLE, WS_EX_TRANSPARENT
SetWindowPos me.hwnd, HWND_NOTOPMOST, 0&, 0&, 0&, 0&, SWP_SHOWME

Download this snippet    Add to My Saved Code

Make Forms Transperent revised with directcode without classess Comments

No comments have been posted about Make Forms Transperent revised with directcode without classess. Why not be the first to post a comment about Make Forms Transperent revised with directcode without classess.

Post your comment

Subject:
Message:
0/1000 characters