{"id":52,"date":"2016-02-11T10:16:52","date_gmt":"2016-02-11T10:16:52","guid":{"rendered":"https:\/\/ibex.tech\/csharp\/?p=52"},"modified":"2022-02-17T06:24:15","modified_gmt":"2022-02-17T06:24:15","slug":"create-new-form","status":"publish","type":"post","link":"https:\/\/ibex.tech\/csharp\/c-sharp\/forms\/create-new-form","title":{"rendered":"Create New Form"},"content":{"rendered":"<h4>\n\tCreating The Form<br \/>\n<\/h4>\n<p>\n\tProject &gt; Add Windows Form. Name it using &#39;frm&#39; at the start (our&nbsp;convention)<br \/>\n\tSet the &#39;Form Border Style&#39;<br \/>\n\tSet &#39;MaximiseBox&#39; and &#39;MinimizeBox&#39; properties<br \/>\n\tSet StartPostion<br \/>\n\tSet &#39;Text&#39;<br \/>\n\tSet &#39;icon&#39; (or turn off ShowIcon)\n<\/p>\n<h4>\n\tNice Things To Do<br \/>\n<\/h4>\n<h5>\n\tAdd this before the constructor<br \/>\n<\/h5>\n<pre>\r\n<code>\r\n    public partial class frmMyForm : Form\r\n    {\r\n\t\t\/\/--------------------------\r\n\t\t\/\/----- PUBLIC DEFINES -----\r\n\t\t\/\/--------------------------\r\n\t\t\/\/public \r\n\r\n\t\t\/\/---------------------------\r\n\t\t\/\/----- PRIVATE DEFINES -----\r\n\t\t\/\/---------------------------\r\n\t\t\/\/private \r\n\r\n\t\t\/\/--------------------------\r\n\t\t\/\/----- PUBLIC OBJECTS -----\r\n\t\t\/\/--------------------------\r\n\t\t\/\/public \r\n\r\n\t\t\/\/---------------------------\r\n\t\t\/\/----- PRIVATE OBJECTS -----\r\n\t\t\/\/---------------------------\r\n\t\t\/\/private \r\n\r\n\r\n\t\t\/\/*********************************\r\n\t\t\/\/*********************************\r\n\t\t\/\/********** CONSTRUCTOR **********\r\n\t\t\/\/*********************************\r\n\t\t\/\/*********************************\r\n\t\tpublic frmMyForm()\r\n\t\t{\r\n<\/code><\/pre>\n<h5>\n\tAdd this form load event<br \/>\n<\/h5>\n<pre>\r\n<code>\r\n\t\t\/\/*******************************\r\n\t\t\/\/*******************************\r\n\t\t\/\/********** FORM LOAD **********\r\n\t\t\/\/*******************************\r\n\t\t\/\/*******************************\r\n<\/code><\/pre>\n<p>\n\t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Creating The Form Project &gt; Add Windows Form. Name it using &#39;frm&#39; at the start (our&nbsp;convention) Set the &#39;Form Border Style&#39; Set &#39;MaximiseBox&#39; and &#39;MinimizeBox&#39; properties Set StartPostion Set &#39;Text&#39; Set &#39;icon&#39; (or turn off ShowIcon) Nice Things To Do Add this before the constructor public partial class frmMyForm : Form { \/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; \/\/&#8212;&#8211; PUBLIC [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-52","post","type-post","status-publish","format-standard","hentry","category-forms"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/52","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=52"}],"version-history":[{"count":3,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/52\/revisions"}],"predecessor-version":[{"id":280,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/52\/revisions\/280"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/media?parent=52"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/categories?post=52"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/tags?post=52"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}