### Set Colors of a ProgressBar

Use ProgressBar.Style Property.
Example red bar with black border:
progressbar.style="-fx-box-border: black; -fx-accent: red;"
Another option is via a JavaObject:
' Set the style of a progressbar
' Parameter ProgressBar as node
' Parameter Style CSS
' Example: setProgressBarStyle(progressbarMain, "-fx-box-border: black; -fx-accent: red;")
`Sub setProgressBarStyle(pb As Node, s As String)
Dim P As JavaObject = pb
P.RunMethod("setStyle",Array As Object(s))
End Sub`

Changed: , Category: ProgressBar, File: T6C232M1699.htm, ID: 1699