#include <GUIConstantsEx.au3>
#include <GUIConstants.au3>
#include <WindowsConstants.au3>
Opt("GUIOnEventMode", 1)
$Form1 = GUICreate("Testform", 521, 358, 320, 188)
GUISetOnEvent($GUI_EVENT_CLOSE, "_Close_main")
$Mainmenu = GUICtrlCreateMenu("Main")
$M_setwindowpos = GUICtrlCreateMenuItem("Set window Pos", $Mainmenu)
GUICtrlSetOnEvent(-1, "M_setwindowpos")
$M_close = GUICtrlCreateMenuItem("Quit", $Mainmenu)
GUIctrlSetOnEvent(-1, "_Close_main")
GUISetState(@SW_SHOW)
While 1
Sleep(200)
WEnd
func M_setwindowpos()
MsgBox(4096, "Why am i not showing?", "test")
EndFunc
func _Close_main()
MsgBox(4096, "Why am i not showing?", "test")
Exit
EndFunc
Thanks for the help i am being silly...