> >
> >
> > you want to drag & drop a bomb into my listbox.its normal it is "anti bomb" :-U
> > I tried to use a textbox but unsuccessfully. If you have a solution...thanks in advance.
> >
> > Dont rate please.its only for the pleasure to help.Give me only a feed back.
> > Yousfi Benameur
>
> To fix this error,just add this code to your Form::OleDragDrop event:
>
>
oDataObject.GetData(15, @aValues )
> If EMPTY(aValues) &&<------------------------this is new
> Return
> Endif &&<-------------------- End of new code
> For i = 1 To Alen(aValues)
>
>
> and make the list look like a proper listbox.
>
> Resize it, and AutoHideScrollbar = 0
>
> Now that was much easier to do with a .scx than a prg.
>
> Bernard
>

>
** If you see someone without a smile, give em one of yours :) **>
My Blog
-The problem is that i cannot find this error.I drop dozen of images jpg,gif,png,bmp and i dont get any error !
-if empty(aValues)....But this matrix is never empty and always alen(aValues)>=1.
the oly one format becomes from a handle that identifies a list of files dragged from the Windows Explorer. It works even if you drag many files at once(retains first one).
If not a picture the code clear the listbox and the image on the form.
My listbox is already with autoHidescrollbar=1 .
Dont rate please.its only for the pleasure to help.Give me only a feed back.
Yousfi Benameur