Private Const WS_EX_TRANSPARENT = &H20&
Private Const GWL_EXSTYLE = (-20)
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Function MakeWindowedControlTransparent(ctlControl As Control) As Long
Dim result As Long
ctlControl.Visible = False
result = SetWindowLong(ctlControl.hwnd, GWL_EXSTYLE, WS_EX_TRANSPARENT)
ctlControl.Visible = True ' Use the visible property as a quick VB way of forcing a repaint with the new style
MakeWindowedControlTransparent = result
End Function
This will make a progress bar some transparent(so the area the bar isn't shows the form)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.