the output window opens as a result of using trace()
you need to replace trace() with the code you use to show your text box