>Greetings.
>
>I am trying to get a label's caption to reflect what is entered into a text box. In the KeyPress event I am using:
>if nKeyCode>0
> thisform.label1.caption=this.value
>endi
>Problem is the label caption updates one keystroke behind. For instance if I have so far typed in ABC, the label will only say AB
>
>Any ideas on how to change this to reflect what is actually in the textbox? Adding thisform.refresh makes no difference.
>
>Many thanks!
Try this:
if nKeyCOde>0
dodefault(nKeyCode, nShiftAltCtrl)
thisform.label1.caption = this.value
Endif