This may not be the "best" way but here is "a" way to accomplish this.
I don't spend my days writing GDI+ drawing controls...
The link below is to a GDI+ control that draws hierarchies in a
couple of different formats. The jist is that you write some
set of methods that determines where you should draw the image
and store the x, y, height, and width of the image and where
it should be drawn on the class properties you create for them.
Keep a data class object in a collection for each item you wish
to draw.
Then, you run the collection of things to draw through a drawing
engine. Afterwards, if you retain the data that was used to draw the map,
you can iterate through the collection of data classes, check the
mouse x, y, height, and width boundries when the user clicks
the image.
If you need to move the item, you simply recreate the data collection
with new images and locations. Then, redraw the image.
http://www.eggheadcafe.com/articles/...h_gdi_plus.asp
--
Robbe Morris [Microsoft MVP - Visual C#]
..NET PropertyGrid Control - ListBox, ComboBox, and Custom Classes
http://www.eggheadcafe.com/tutorials...d-control.aspx
"Atul Thombre" <at******@gmail.comwrote in message
news:5n************@mid.individual.net...
Hello,
I am not sure if this is the right forum for this question or not. If not,
please ignore.
I am developing an application in C# that requires me to display a map of
the objects present in a room with proper locations [X, Y coordinates].
The objects will be tiny images [either jpg or gif]. Is there a mapping
software component that will help me do this? I am new to C# and not
familiar with the graphics routines. Also, Internet search showed zillions
of results for GPS mapping, which is not useful.
Any help is appreciated, thanks.
Atul.