Thanks guys - worked just as I wanted.

I called the text box's loctfocus event inside the text box's validate event procedure and the text box text is formatted into a date when you click on the toolbar just as if it had taken the focus.