I am creating a Text editor.
Everything is done and coded.
If some one opens a new doc, types and saves thats fine.
If they edit there doc then go to close the file I want to MSGBOX "quit without saving?"
what property/control do i need to monitor for "Text Change" to enable this to work?
Best Regards
James
*****************
I cant get the reply to work. But thanks, That helped loads!
Hirendra SisodiyaPosted Mar 18, 2010, 8:29 AM
'All these things can be handles with the help of code
'1. create boolean type variable
Dim IsSaved As Boolean = False
'when you save document, set the value of IsSaved to True
IsSaved = True
'on textchanged event of your textbox or richtextbox
IsSaved = False
'on form closing event you can check
If IsSaved = False Then
MessageBox.Show("Form is not saved") 'or put your code
End If
thanks
check answere if you like