C#: Creating an editable object inside a PictureBox

Posted by ET on Stack Overflow See other posts from Stack Overflow or by ET
Published on 2010-04-14T20:02:44Z Indexed on 2010/04/15 7:43 UTC
Read the original article Hit count: 214

Filed under:
|
|

My goal is to let the user click on a specific location on a map to add a Placemark, and then edit the placemark by click its icon (change its name, move it around, etc). I am using a PictureBox to show the map, and by registering the MouseDoubleClick event I am drawing an Image on the map with GDI+ DrawImage() method. The problem is that after the placemark's Image was drawn, it does not editable: the user cant click the icon and move it around, change its name etc. Is there any other design pattern I can follow? maybe using other controls... ?

© Stack Overflow or respective owner

Related posts about c#

Related posts about picturebox