This is just an example. Note, library required. #Include <GUIConstantsEx.au3> #Include <GUIImageList.au3> #Include <GUITreeView.au3> #Include <TreeViewConstants.au3> #Include <WindowsConstants.au3> #Include <WinAPIEx.au3> Opt('MustDeclareVars', 1) Global $hForm, $hTreeView, $hImageList, $hItem, $hNext, $hSelect = 0, $hInput, $Input, $Dummy1, $Dummy2 Global $X, $Y, $sPath, $sRoot = @HomeDrive $hForm = GUICreate('MyGUI', 600, 600) $Input = GUICtrlCreate