Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main() {
- Application.Run(new Form1());
- }
- private static Form1 m_form;
- static void Main() {
- try {
- m_form = new Form1();
- Application.Run(m_form);
- } catch (Exception err) {
- // log error
- if ((m_form != null) && !m_form.IsDisposed) {
- // you might want to save data on your form before it goes Bye-Bye.
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement