How to change Progressbar color

moster67

Expert
Licensed User
Longtime User
I am trying to change the color of the progressbar from yellow into another color but I can't.

I have tried:

B4X:
ProgressBar1.Color=Colors.Green

B4X:
cd.Initialize(Colors.RGB(245,118,0), 5dip)
ProgressBar1.Background=cd

What am I doing wrong?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…