PDA

View Full Version : listbox BeforeDropOrPaste event



amerf
11-27-2008, 10:42 AM
hi all, my listbox items can be dragged and dropped in any location within the listbox using "BeforeDragOver" & "BeforeDropOrPaste", I found the code that does this on the internet, I would appreciate if anybody can help me modify the code so that if an item is dragged outside the form it is permanently removed (deleted) from the listbox. please find attached an example that illustrates what i already said including the controls and the codes. thanx in advance