I need some help!! I would like to drag an item from the list box to a text box.
Printable View
I need some help!! I would like to drag an item from the list box to a text box.
Hi,
You can drag an item from the list and drop it in text by setting the following properties
1. Set Listbox's OLEDragMode to Automatic
2. Set Textbox's OLEDropMode to Automatic
that's it!!! and you can start dragging and dropping items
Happy Programming
I have those set. Sometimes the text will drop, and other times it won't. Seems I have to click on the list box a couple of times in order to get the drag icon. Any suggestion to what the problem can be? Thanks
No there is no need to click on the listbox for couple of time.Only thing is that you have to drag it properly into the text box and see while dragging you have to see the icon change to +.You you find this icon while dragging then you can be sure that it is dragging otherwise you will see a circle icon.
I have tried this several times and found to be working good