Can't you just right click on the textbox and choose textbox properties? Then in the Border area, just change the style to Dotted. Or alternatively, just select the textbox and set the BorderStyle property to Dotted.
I must be missing something from your question.
Rob