Dear forumers,
Kindly ask your help.
I'd Like to make a menu and a form, which opens from this menu (code is below).
I want form2 to be closed but the menu (form1) stay.
But after I close Form2, the Form
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Form1", 615, 438, 192, 124)
$Button1 = GUICtrlCreateButton("Button1", 224, 96, 137, 65)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$Form2 = GUICreate("Form2", 615, 438, 192, 124)
$Button2 = GUICtrlCreateButton("Button2", 224, 96, 137, 65)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
GUIDelete($Form2)
EndSwitch
WEnd
EndSwitch
WEnd
I'd Like to make a menu and a form, which opens from this menu (code is above)