http://www.currantech.com/vbscript.html

it does work, if you copied it into your thing you likely caused the cmdButton_OnClick to run together with Form1.txtBox.style, it must be on different lines. view the source of my example and see.
_________________________
"It's better to burn out, than to fade away."