*Close
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 801, 534, 192, 124)
$Button1 = GUICtrlCreateButton("Add", 16, 8, 185, 33, $WS_GROUP)
$Tab1 = GUICtrlCreateTab(0, 64, 793, 465)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
$TabSheet1 = GUICtrlCreateTabItem("TabSheet1")
$obj = _IECreateEmbedded ()
$GUI_obj = GUICtrlCreateObj ( $obj, 100, 67, 500, 500 )
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
_IENavigate ( $obj, "www.google.de" )
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$TabSheet1 = GUICtrlCreateTabItem("TabSheet1")
$obj = _IECreateEmbedded ()
$GUI_obj = GUICtrlCreateObj ( $obj, 100, 67, 500, 500 )
EndSwitch
WEnd