_form2.StartPosition = FormStartPosition.Manual _form1.StartPosition = FormStartPosition.Manual _form2.Closing = new CancelEventHandler(OnFormClosing) _form2.Closed = new EventHandler(OnFormClosed) _form1.Closing = new CancelEventHandler(OnFormClosing) _form1.Closed = new EventHandler(OnFormClosed) MessageBox.Show("An error occurred while attempting to show the application." _userData = new FileStream(Application.UserAppDataPath "\\appdata.txt", FileMode.OpenOrCreate) Ignore any errors that might occur while closing the file handle.Īpplication.ApplicationExit = new EventHandler(this.OnApplicationExit) 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,
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |