#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Opt("GUIOnEventMode", 1)
$Form1 = GUICreate("TEST", 451, 255, 192, 124)
GUISetOnEvent($GUI_EVENT_CLOSE, "_exit")
$Button1 = GUICtrlCreateButton("Get File", 384, 0, 65, 73)
GUISetOnEvent(-1,"_exit")
GUISetState(@SW_SHOW)
While 1
WEnd
Func _exit()
Exit
EndFuncCan you explain why $Button1 not working?? :\