Journal Quill_28's Journal: C# and Image Maps 2
If you wanted to make a map of Europe and when the user moved their mouse over or clicked on a country, a message box would appear.
How would you do this is C#?
I am most worried about detecting whether the mouse is over France or over Italy kind of thing.
Ideas?
Not really a C# question per se... (Score:2)
What you want is a HotSpot control. They are easy to make. You can base it off a button, and image, or make your own custom one and handle all the paint commands yourself.
I did a quick google on ".net windows form hotspot" and found a pretty simple CodeProject project precisely on this:
HotSpot [codeproject.com]
Try that out, i think
Re:Not really a C# question per se... (Score:2)
In the case of embeding, you could use an image, and an image map over it, and have the image map url's be javascript which calls the callback to your host