CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: quiting an app

  1. #1
    Join Date
    Apr 1999
    Location
    Scottsdale, Arizona
    Posts
    28

    quiting an app

    I need to force an application to quit. Is there any Java\Swing equivalent to the Windows PostQuitMessage() function, which simply sends the app an WM_DESTROY message.


  2. #2
    Join Date
    May 1999
    Location
    Pune, MH, India.
    Posts
    453

    Re: quiting an app

    U can use

    System.exit(0); // 0 is error code

    - UnicMan
    http://members.tripod.com/unicman

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

Featured