![]() ![]() ![]() Display a MsgBox asking the user to save changes or abort. If ( textBox1->Text != strMyOriginalText ) Determine if text has changed in the textbox by comparing to original text. Void Form1_Closing( Object^ /*sender*/, System::ComponentModel::CancelEventArgs^ e ) If it has, the user is asked whether to save the changes to a file. The following example uses Closing to test if the text in a TextBox has changed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |