vb: how to make transparent form?
This site provides users with the information about vb, visual basic, vb6, make transparent form, how to make transparent form, and more.
If you think that this site is helpful, please recommend your friends to visit our site.
How to make transparent form?
The following is the code to make transparent form:
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" _
(ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Const WS_EX_TRANSPARENT = &H20&
Const GWL_EXSTYLE = (-20)
Private Sub Form_Load()
retval = SetWindowLong(Form1.hwnd, GWL_EXSTYLE, WS_EX_TRANSPARENT)