{"id":1234,"date":"2022-10-07T11:53:11","date_gmt":"2022-10-07T10:53:11","guid":{"rendered":"https:\/\/ibex.tech\/csharp\/?p=1234"},"modified":"2022-10-07T11:53:12","modified_gmt":"2022-10-07T10:53:12","slug":"close-application","status":"publish","type":"post","link":"https:\/\/ibex.tech\/csharp\/c-sharp\/application-control\/close-application","title":{"rendered":"Close application"},"content":{"rendered":"\n<h5 class=\"wp-block-heading\">Normal method<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>\t\/\/Signal this app to close\r\n\tSystem.Windows.Forms.Application.Exit();<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">If you need to forcibly close (Where Application.Exit() doesn&#8217;t work for some reason)<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>\t\/\/Forcibly close the app\r\n\tEnvironment.Exit(0);<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Normal method If you need to forcibly close (Where Application.Exit() doesn&#8217;t work for some reason)<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-1234","post","type-post","status-publish","format-standard","hentry","category-application-control"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/1234","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/comments?post=1234"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/1234\/revisions"}],"predecessor-version":[{"id":1235,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/1234\/revisions\/1235"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/media?parent=1234"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/categories?post=1234"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/tags?post=1234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}