ophelius 0 Posted August 31, 2011 Hi there, I'm trying to design a multi-form app using koda and I need to be shown how to set it up properly. So let's say I have Form1 and Form 2 code generated here: Form1: #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 633, 454, 192, 114) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Form2: #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form2 = GUICreate("Form2", 633, 454, 192, 114) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd How do I setup the code so Form1 starts and I have the option of displaying form2 whenever I want and then turn it off again? Any help would be great. Thanks Share this post Link to post Share on other sites
ophelius 0 Posted August 31, 2011 Never mind, I found what I needed in the wiki:http://www.autoitscript.com/wiki/Managing_Multiple_GUIs Share this post Link to post Share on other sites