Hiyas,
Is it possible to make a Frame's background transparent?
Thanks,
-Git
Printable View
Hiyas,
Is it possible to make a Frame's background transparent?
Thanks,
-Git
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
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
Thanks, I'll try it out tonight! =)
Cya.
-Git