Hello,
I am trying to delete items from a listbox after the item has been moved to another listbox. For eg: from Listbox1 when I move an item into Listbox2, I need to delete it in Listbox1. Can someone please help? Thanks!
Here is my partial code.
Func Selectapps()
$Count = 0
GUICreate("List of apps to be selected")
$ListofApps = GUICtrlCreateList("", 10, 10, 120, 320)
While $Count < $appIdCount
GUICtrlSetData($ListofApps, $AppIdProc[$Count][0], "")
$Count = $Count + 1
WEnd
$AppsAdded = GuiCtrlCreateList("", 200, 10, 120, 320)
$moverightbtn1 = GuiCtrlCreateButton(">>",150,100,40,20)
$moveleftbtn1 = GuiCtrlCreateButton("<<",150,130,40,0)
GUISetState()
$Count1 = 0
While 1
$button = GUIGetMsg()
If $button = $GUI_EVENT_ClOSE Then
ExitLoop
EndIf
If $button = $moverightbtn1 Then
$rightmoveitem = GuiCtrlRead($ListofApps)
ConsoleWrite($rightmoveitem & @CRLF)
GuiCtrlSetdata($AppsAdded, $rightmoveitem)
$Count1 = $Count + 1
EndIf
If $button = $moveleftbtn1 Then
$leftmoveitem = GuiCtrlRead($AppsAdded)
ConsoleWrite($leftmoveitem & @CRLF)
GuiCtrlSetdata($ListofApps, $leftmoveitem)
$Count1 = $Count + 1
EndIf
WEnd
EndFunc