# change to red $Textfield->Change( -background => [ 255, 0, 0 ] ); # repaint the control $Textfield->InvalidateRect(1);