codice:
if (textbox.text <> "") Then 
 codice da eseguire...