Button that exit's program

Button that exit's program

Page 1 of 1

2 Replies - 948 Views - Last Post: 28 January 2010 - 07:53 PM Rate Topic: -----

#1 zachman1221#2   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 28-January 10

Button that exit's program

Posted 28 January 2010 - 05:46 PM

Button that exit's program

______________________________________________________________
zachman1221 meet same person zachman1221#2
That's right ban me psh...
Is This A Good Question/Topic? 0
  • +

Replies To: Button that exit's program

#2 Sergio Tapia   User is offline

  • D.I.C Lover
  • member icon

Reputation: 1258
  • View blog
  • Posts: 4,168
  • Joined: 27-January 10

Re: Button that exit's program

Posted 28 January 2010 - 05:49 PM

To have a windows form application exit, use:
Application.Exit()

For a WPF application use:
Application.Current.Shutdown();


(In the future please don't be so rude. This is the internet, but people here are just trying to have a good time and share some knowledge, don't be a dick! :P )

This post has been edited by stapia.gutierrez: 28 January 2010 - 05:50 PM

Was This Post Helpful? 1
  • +
  • -

#3 PsychoCoder   User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1663
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Button that exit's program

Posted 28 January 2010 - 07:53 PM

Well zachman you were put under a temporary ban earlier for your actions towards a Moderator, so you go a head and create a new account to get past that, well that is getting your a permanant ban (and is not getting you the code you ask for)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1