Statt die GUI immer wieder zu löschen und neu zu erstellen, sollte man lieber mit HIDE und SHOW arbeiten:
Spoiler anzeigen
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$GUI = GUICreate("Form1", 254, 185, 344, 251)
$Pic2 = GUICtrlCreatePic("C:\Bild.jpg", 3, 6, 249, 157, BitOR($SS_NOTIFY, $WS_GROUP, $WS_BORDER, $WS_CLIPSIBLINGS), $WS_EX_CLIENTEDGE)
$MenuItem1 = GUICtrlCreateMenu("&Menü")
$Message = GUICtrlCreateMenuItem("Message", $MenuItem1)
GUISetState(@SW_SHOW)
$GUI2 = GUICreate("Info", 139, 107, 328, 363)
$Group1 = GUICtrlCreateGroup("Info:", 6, 4, 127, 97)
$Label1 = GUICtrlCreateLabel("01", 16, 48, 90, 17)
$Label2 = GUICtrlCreateLabel("02", 16, 24, 112, 17)
$Label3 = GUICtrlCreateLabel("03", 16, 72, 83, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_HIDE)
While 1
$aMsg = GUIGetMsg(1)
Switch $aMsg[0]
Case $GUI_EVENT_CLOSE
If $aMsg[1] = $GUI Then Exit
GUISetState(@SW_HIDE, $GUI2)
Case $Message
GUISetState(@SW_SHOW, $GUI2)
EndSwitch
WEnd