Color Input / Bootstrap, change at runtime


Can’t change the color of the Input field (bootstrap) at runtime:

I tried = RGB(255,0,0)
and vbRed

P.S.: At design time vbRed can’t be used, but red works.
But at runtime?

I’m using 6.2.7


If the input text color is the target, I believe you’re looking for: = RGB(255,0,0)

Kind regards,


Hm, that’s exactly what I tried.


works for me, too. Are you sure you’re entering it correctly?


And you see red characters?

Using BASIC\3. Controls\Bootstrap\Input.nsx
I added this Code
Function Input1_onclick() = RGB(255,0,0)
Input2.value =
End Function

Input2 shows #ff0000
but there’s nothing red in Input1

btw: instead of .Color
Input2 shows rgb(255, 0, 0)


Yes, I do. Look at dallrich’s code carefully - he typed something different than you.


color in lower case !


OK, _contents and color. I tried it with _contents, but with upper case Color, and that did not work.
Thank you.