{"id":430,"date":"2012-03-06T17:54:37","date_gmt":"2012-03-06T17:54:37","guid":{"rendered":"http:\/\/devnot.wordpress.com\/?p=430"},"modified":"2012-03-06T17:54:37","modified_gmt":"2012-03-06T17:54:37","slug":"check-whether-a-form-is-valid","status":"publish","type":"post","link":"https:\/\/thomas-jansen.eu\/?p=430","title":{"rendered":"Check whether a form is valid."},"content":{"rendered":"<p>When using modeless forms the user can close\u00a0 the form manually. Use the created property to check whether this is the case.<\/p>\n<p>Example:<\/p>\n<pre>class Form1 : Form\n{\n   Form2 modelessForm = null;\n\n   \/\/On mouse click show Form2\n   void onMouseClick(MouseButtons button, int x, int y)\n   {\n      if (modelessForm == null || !modelessForm.Created)\n      {\n         modelessForm = new Form2()\n      }\n\n      modelessForm.Show();\n   }\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>When using modeless forms the user can close\u00a0 the form manually. Use the created property to check whether this is the case. Example: class Form1 : Form { Form2 modelessForm = null; \/\/On mouse click show Form2 void onMouseClick(MouseButtons button, int x, int y) { if (modelessForm == null || !modelessForm.Created) { modelessForm = new [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-430","post","type-post","status-publish","format-standard","hentry","category-c"],"_links":{"self":[{"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/posts\/430","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=430"}],"version-history":[{"count":0,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/posts\/430\/revisions"}],"wp:attachment":[{"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=430"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}