Option Explicit
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Const WM_USER = &H400
Private Const PBM_SETBARCOLOR = (WM_USER + 9)
Private Sub Form_Load()
SendMessage ProgressBar1.hwnd, PBM_SETBARCOLOR, 0, ByVal vbBlack
End Sub