No addition, no nothing. Just that.
Can you get the code of ColorLabel class from Class Browser, and show it here ? Maybe you missed something.
>That's strange, I created a test form with a textbox, dropped a colorlabel object onto it. In both the textbox's keypress & valid I put:
>"ThisForm.ColorLabel1.Caption = alltrim( This.Value )
>thisform.refresh"
>when I run the form and type in the textbox, nothing happens. Did you add anything else to your test form?
>
>
>>Yes I did test it. I tested from textbox, and in the valid event I put:
>>
>>ThisForm.ColorLabel1.Caption = alltrim( This.Value )
>>
>>It works just fine. And I just tried from KeyPress event, it also works
>>
Herman