The answer depends on the condition that you used for the conditional show of the text box. The "Close" button should make that condition false.
For example, it's typical to use variables in Show/Hide expressions. In this case, your Close button should set the variable to 0.
This is only one of many visualization techniques that I describe in detail in my new book "QlikView Your Business".