ophelius Posted August 31, 2011 Share 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 Link to comment Share on other sites More sharing options...
ophelius Posted August 31, 2011 Author Share Posted August 31, 2011 Never mind, I found what I needed in the wiki:http://www.autoitscript.com/wiki/Managing_Multiple_GUIs Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now