How to change color of text in a label

I can’t figure out how to change the color of text in a Bootstrap 4 label. I tried the .color property at design time, tried this (see below) - no success. Anyone?

Form1.onshow=function(){
  lblTest.style.color = "#FF0000"
}

Somebody will tell me this is not best practice but I remove the class of the label to free it from class styling.

Label1.className = ""
Label1.style.color = vbGreen

1 Like