"Does not work" Is not much of a description.
The code I posted does work assuming that the textbox and the label exist on your form.