I have little problem(i write simple program which drawing few lines) and I wonder if it is possible to make "dynamic" move this lines to point that i choose on screen (with showing this lines on screen too).

If someone have any idea or link to place where i can find any info would be great (full program would be best option ;] ).