Would it be possible to drag and drop lines (where each line represents an item) within a multiline textbox, to allow the user to rearrange the items? If so, some sample code would be much appreciated.
Thanks,
Bruce
Printable View
Would it be possible to drag and drop lines (where each line represents an item) within a multiline textbox, to allow the user to rearrange the items? If so, some sample code would be much appreciated.
Thanks,
Bruce
I suggest you use a ListBox.
I am aware of the listbox option. In this particular case, the direct entry of a textbox would be desirable. So, is the drag and drop possible, and if so, is it more trouble than its worth?
Could you use a ListView with LabelEdit set to True? What you ask for would be possible with a TextBox but I'd guess it would be tedious. It would also be difficult to maintain the integrity of the data as the user could add line breaks wherever they felt like it.
Actually, the ListView with LabelEdit is not a bad idea at all, hadn't thought about it. (I can do the D&D with the LV.) Thank you.