Jump to content

i need to a code to close the application

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
imhaf123

imhaf123

    Newbie

  • Members
  • Pip
  • 9 posts
i am looking for a specific code that when i click a button the application will close.can any1 help me?:confused:

#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
You want to close another application or close the application that you are building?

To Close your own Application:
Application.Exit();

To Close another application:
How to use Visual C# to close another application

#3
imhaf123

imhaf123

    Newbie

  • Members
  • Pip
  • 9 posts
if i wanna close my own application i muz type "Application.Exit ();"...the application is the name of the application or juz type "Application.Exit();"...i tried wat u wrote.seems cannot.the whole program juz like hang.i tink got run-time error.amazingly no syntax error

#4
Guest_Jordan_*

Guest_Jordan_*
  • Guests
If you are using C# just type Application.Exit() and it will exit.