{"id":12534,"date":"2016-07-28T06:00:35","date_gmt":"2016-07-28T13:00:35","guid":{"rendered":"https:\/\/www.sapien.com\/blog\/?p=12534"},"modified":"2016-10-27T11:03:52","modified_gmt":"2016-10-27T18:03:52","slug":"how-do-multi-form-projects-work","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2016\/07\/28\/how-do-multi-form-projects-work\/","title":{"rendered":"How Do Multi-Form Projects Work?"},"content":{"rendered":"<blockquote><p>Applies to: PowerShell Studio 2016, Windows PowerShell 3.0+<\/p><\/blockquote>\n<p>I recently wrote an article with <a href=\"http:\/info.sapien.com\/index.php\/guis\/gui-scripting\/write-a-multi-form-powershell-gui-app\" target=\"_new\">step-by-step instructions for creating a very simple multi-form PowerShell GUI application<\/a>. In our sample app, we use PowerShell Studio features that make it very easy to open a child form from the main form and gets the text in the textbox on the child form.<\/p>\n<p>In this article, I&#8217;ll explain what goes on in the background to make these features work. You might not care &#8212; just so they work &#8212; and that&#8217;s fine. But if you&#8217;re wondering how this happens, or you need to debug a problem, or you&#8217;d like to customize these features for your environment, this information will help.<\/p>\n<p style=\"padding-left: 30px;\"><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2016\/07\/image003.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12526\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2016\/07\/image003.png\" alt=\"image003\" width=\"601\" height=\"267\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2016\/07\/image003.png 1062w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2016\/07\/image003-300x133.png 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2016\/07\/image003-768x341.png 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2016\/07\/image003-1024x455.png 1024w\" sizes=\"auto, (max-width: 601px) 100vw, 601px\" \/><\/a><\/p>\n<h1>It&#8217;s One Script<\/h1>\n<p>One of the first things to know about GUI apps is that PowerShell Studio combines the code in the form or form project &#8212; all of it &#8212; into a single PowerShell script, a .PS1 file.<br \/>\n<a href=\"http:\/\/info.sapien.com\/index.php\/guis\/gui-scripting\/how-do-multi-form-projects-work\" target=\"_new\">Read the full post in the SAPIEN Information Center&#8230;.<\/a><\/p>\n<p><em>June Blender is a technology evangelist at SAPIEN Technologies, Inc. and a Windows PowerShell MVP. You can reach her at <\/em><a href=\"mailto:juneb@sapien.com\"><em>juneb@sapien.com <\/em><\/a><em>or follow her on Twitter at <\/em><a href=\"https:\/\/www.twitter.com\/juneb_get_help\"><em>@juneb_get_help<\/em><\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Applies to: PowerShell Studio 2016, Windows PowerShell 3.0+ I recently wrote an article with step-by-step instructions for creating a very simple multi-form PowerShell GUI application. In our sample app, we use PowerShell Studio features that make it very easy to open a child form from the main form and gets the text in the textbox [&hellip;]<\/p>\n","protected":false},"author":31,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[2,946,703,25],"tags":[1087,1173,1174,1175],"class_list":["post-12534","post","type-post","status-publish","format-standard","hentry","category-general","category-guiprogramming","category-powershell-studio","category-windows-powershell","tag-gui-programming","tag-multi-form-apps","tag-multi-window-apps","tag-reference-functions"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/12534","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/users\/31"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=12534"}],"version-history":[{"count":11,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/12534\/revisions"}],"predecessor-version":[{"id":12568,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/12534\/revisions\/12568"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=12534"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=12534"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=12534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}