Is it possible to programaticaly remove a selection on an item in a listbox control?  There is a SETSELECTED but no DESELECTITEM.
Thanks
			
			
			
				Use the SETSELECTED command with a position  of -1
Larry
			
			
			
				Thanks Larry.  I appreciate your help.
			
			
			
				Sorry Larry.  Setting it to -1 doesn't work.  Here is my list settings.  It is a multi-selection list box. 
I used: SETSELECTED win,2,-1
QuoteCONTROL win,@LISTBOX,"",370,tHeight*2,180,60,@TABSTOP|@CTLISTEXTENDED|@VSCROLL|@CTLISTNOTIFY|@CTLISTSORT,2
			
				Went back to the SDk and it states that what I told you to do will not work when you have the multiselect flag set.
The only thing I would know to do is delete all the items in the listbox and then reload it.
I've done it before but right now I don't know where a copy of the program I did it in is located.
Larry
			
			
			
				Use this to clear out your listbox:
CONST LB_RESETCONTENT = 0x184
SENDMESSAGE win,LB_RESETCONTENT,0,0,2
then reload it
Larry
			
			
			
				An application sends an LB_SETSEL message to select a string in a multiple-selection list boxSendMessage(d1, LB_SETSEL, FALSE, -1, listbox_id)
Should deselect all items. Include windows.inc or windowssdk.inc.
			
			
			
				I missed that one, Sapero.  As always you come through!
Larry