Hi Steve,
I use a special class I've designed for similar purpose. This class consists of textbox, multiselect listbox, Add and Remove buttons. If you're interested, I can send you a class library, which contains this class and couple of other very useful classes. I use them to create a user selection screen...
>I have an editbox on a form. The editbox is tied to a Memo field. The editbox contains a list of names. I made a command button called Delete that is going to be used to remove a selected name from the editbox.
>
>What's the best way to do this? How can I identify the line that the user wants to remove from the editbox and then remove it? Use a line number? SelText? Can I set it up so that the user clicks on a line and the whole line gets selected automatically? And then when the user presses Delete button the line disappears and all the other names move up one position.
>
>Any help is very much appreciated.
>
>My Add button to add a name to the editbox works great. My Delete button does not.
If it's not broken, fix it until it is.
My Blog