6
Answers

Change Text Color Attribute based on combox selection

Ask a question
Rick Clemons

Rick Clemons

14y
5.5k
1
I have a ComboBox (motionComboBox) with values: STOP, GO, PAUSE
I have a label for the box (labelmotionComboBox).

I want to change the Foreground.Color of both of these items depending on which value the user selects from the combo box.

I have tried various combinations that will compile clean, but halts the program when I change the value.

Surely this can be done, but as usual I have run out of insight.

ALL thoughts would be gratefully appreciated.
 

Answers (6)