Community discussion forum

Selecting Multiple Line using Mouse Event?

  • 3 months ago

    Hello Everybody I have to Select multiple Lines which are drawn on Picturebox using GDI+. (EX: As we click on desktop and drag our cusor over the folders which we wanna select and then we carry out the task on them i.e., delete,copy,cut,etc).I have to implement the same function in my application

    Thanks In Advance

    Rizwan

    Post was edited on 30/07/2009 13:17:08 Report abuse
  • 3 months ago

    Hi Rizwan, If you drew the lines using graphicspath. Get the X, Y coordinate in mouse down event, Use Contains() method in the graphics path object to find the hit point. Do the relevant Action according to the hit

  • 3 months ago

    Thanks ramsenthil For your reply , the problem is that m using graphic path to select the line .And when i draw rectangle box ,and move it on Drawnline it it only get selected on the four corner points of the rectangle. But i want to select any number of lines which omes in the enter rectangle border .Plz reply ....

    Thanx in Advance

Post a reply

Enter your message below

Sign in or Join us (it's free).

Want to stay in touch with what's going on? Follow us on twitter!