It is very simple it is only logic
1.
Count text length when he close the application, if the length>0
prompt appropriate message.
If you want to know the user modified in the textbox or not
Look it
Maintain status variable initially Zero
In the
TextChanged
event set status=1 and prompt your message
Thanks
SP