Ignore any errors that might occur while closing the file handle. When the application is exiting, write the application data to the Void OnApplicationExit( Object^ /*sender*/, EventArgs^ /*e*/ ) _form2->StartPosition = FormStartPosition::Manual _form1->StartPosition = FormStartPosition::Manual If the data was read from the file, set the form Get the form positions based upon the user specific data. _form2->Closing += gcnew CancelEventHandler( this, &MyApplicationContext::OnFormClosing ) _form2->Closed += gcnew EventHandler( this, &MyApplicationContext::OnFormClosed ) _form1->Closing += gcnew CancelEventHandler( this, &MyApplicationContext::OnFormClosing ) _form1->Closed += gcnew EventHandler( this, &MyApplicationContext::OnFormClosed ) Create both application forms and handle the Closed event Exit the current thread instead of showing the windows. Static property System::String ^ UserAppDataPath ", dynamic_cast(e) ) Gets the path for the application data of a user.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |