Quote Originally Posted by MrNorth
I made search before asking this question...

I have two listboxes... where I can select multiple rows at one time. Now I want to be able to move data to and from them. And if the user selects multiple items I want to be able to drag them all at one time.

Please point me to some articles I can read, or give me some basic explanations! I tried google for this, but came up with very little... also looked at 101 samples at msdn.


Oh, I also want the user to be able to insert them at a specific index. I think I have solved how to do that, BUT i want to give the user a graphical hint on which row the items will be dropped at... how is that possible? All I need is a line that changes when i move the mouse (with data) over the target rows, inidicating between rows 4 and 5 etc...


Anyone???

/Henrik

well sounds like you are looking for a few things... i would advise maybe creating a custom control.

I am not sure if you have created one yet.. if not, then don't worry its pretty much a breeze with .net

you can create a new class, and inherit from the listbox class... then your class will be everything a listbox is, plus whatever you add to it.

this way you can code behind the scenes for when a mouseover occurs, to draw the line you want.. and once you get this all working, you can just use that control in all the spots in your app where you want this functionality. I am too busy to just code it all out.. but if you start to work on this (even if you opt out of doing it as a control, and want to just code it in the form) post the code when you get stuck, and I will try to help out to fix the code