VB6: You could use a Line-object (that one has events already)
.Net: You need to detect if the line is selected (display that in some way) and when selected change the position of the line according to the mouse (or whatever). A Redrawing of the your form/picturebox or whatever will show the result.
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button Wait, I'm too old to hurry!