{"id":5441,"date":"2014-03-30T21:59:48","date_gmt":"2014-03-30T21:59:48","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/winform-templating-system-like-asp-net-masterpage-or-ms-access-subform-collection-of-common-programming-errors\/"},"modified":"2014-03-30T21:59:48","modified_gmt":"2014-03-30T21:59:48","slug":"winform-templating-system-like-asp-net-masterpage-or-ms-access-subform-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/winform-templating-system-like-asp-net-masterpage-or-ms-access-subform-collection-of-common-programming-errors\/","title":{"rendered":"Winform Templating System like ASP.NET MasterPage or MS Access SubForm-Collection of common programming errors"},"content":{"rendered":"<p>The closes thing to Master Pages is Form Inheritance. It is regular class inheritance but also supported by the Designer. To try it:<\/p>\n<p>1) Add a form with Ok and Cancel Buttons, Build project (essential)<\/p>\n<p>2) Choose Project, Add new item, Windows and then the Inherited Form template. Pick the Form from step 1) as the base Form. Add some controls.<\/p>\n<p>3) Repeat step 2) a few times<\/p>\n<p>4) make some Buttons to show the Forms, Build and Test<\/p>\n<p>5) Go back to the Form from 1) and change a few things (Background), run again<\/p>\n<p>Your other tool are UserControls, they work much the same as in ASP.NET. You develop them like Forms and apply them as Controls.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The closes thing to Master Pages is Form Inheritance. It is regular class inheritance but also supported by the Designer. To try it: 1) Add a form with Ok and Cancel Buttons, Build project (essential) 2) Choose Project, Add new item, Windows and then the Inherited Form template. Pick the Form from step 1) as [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5441","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5441","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5441"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5441\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}