Page 2 of 2 FirstFirst 12
Results 41 to 45 of 45

Thread: Nice fading in and out form effect

  1. #41
    Member
    Join Date
    Aug 2009
    Posts
    53

    Re: Nice fading in and out form effect

    That works, thank you

  2. #42
    Member
    Join Date
    Aug 2009
    Posts
    53

    Re: Nice fading in and out form effect

    I know im really been a pain in the ass now but how would i close all forms from the click of one button?

  3. #43
    Hyperactive Member .NetNinja's Avatar
    Join Date
    Oct 2008
    Location
    USA
    Posts
    281

    Re: Nice fading in and out form effect

    Add Application.Exit or Environment.Exit will force the application to close.
    "Don't try to be a great man. Just be a man and let history make its own judgement."

  4. #44
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: Nice fading in and out form effect

    Quote Originally Posted by .NetNinja View Post
    Add Application.Exit or Environment.Exit will force the application to close.
    He really should expose a CloseParent() method on the main form that all the child windows can use to close the whole app. By using the MainForm's Close method it allows the FormClosing events to still fire, which is where any of his clean up code should be. If he uses Application.Exit or Environment.Exit that's a hard exit, app's terminated on that line, no FormClosing, FormClosed, ApplicationClosing, ApplicationClosed events fire.
    Last edited by JuggaloBrotha; Aug 20th, 2009 at 02:20 PM. Reason: Typo's
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  5. #45
    Hyperactive Member .NetNinja's Avatar
    Join Date
    Oct 2008
    Location
    USA
    Posts
    281

    Re: Nice fading in and out form effect

    Quote Originally Posted by JuggaloBrotha View Post
    He really should expose a CloseParent() method on the main form that all the child windows can use to close the whole app. By using the MainForm's Close method it allows the FormClosing events to still fire, which is where any of his clean up code should be. If he uses Application.Exist or Environment.Ext that's a hard exit, app's terminated on that line, no FormClosing, FormClosed, ApplicationClosing, ApplicationClosed events fire.
    Good point...
    "Don't try to be a great man. Just be a man and let history make its own judgement."

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width