|
-
Aug 6th, 2000, 05:31 AM
#1
Thread Starter
Addicted Member
Hiyas,
Is it possible to make a Frame's background transparent?
Thanks,
-Git
-
Aug 6th, 2000, 09:40 AM
#2
Try this:
Code:
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Const GWL_EXSTYLE = (-20)
Const WS_EX_TRANSPARENT = &H20&
Private Sub Command1_Click()
SetWindowLong Frame1.hwnd, GWL_EXSTYLE, WS_EX_TRANSPARENT
End Sub
-
Aug 8th, 2000, 10:24 AM
#3
This will work better:
Code:
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Const GWL_EXSTYLE = (-20)
Const WS_EX_TRANSPARENT = &H20&
Private Sub Command1_Click()
SetWindowLong Frame1.hwnd, GWL_EXSTYLE, WS_EX_TRANSPARENT
Me.Hide
Me.WindowState = vbMinimized
Me.WindowState = vbNormal
Me.Show
End Sub
-
Aug 9th, 2000, 12:33 AM
#4
Thread Starter
Addicted Member
Thanks, I'll try it out tonight! =)
Cya.
-Git
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|