No built in way. You would have to use the change event or other
appropriate event for a control toolbox toolbar textbox or for a textbox
from the drawing toolbar, use the OnAction macro. It wouldn't be a
restriction, but a notification and rejection if it didn't comply.