views:

37

answers:

2

I have an image of the political map of the USA. I want to write separate click events for each of the 50 states in Visual Studio. How would I do that?

A: 

Suggest you get your hands on something like Macromedia Fireworks which allow you to create image maps.

This article explains how to do it using photoshop.

http://www.createblog.com/photoshop-tutorials/736-photoshop-image-maps/

Or even online web site

http://www.image-maps.com

Or even this

http://en.wikipedia.org/wiki/Template:USA_imagemap_with_state_names

David
I am looking in my Visual Studio and I see no 'Macromedia Fireworks'. ;p
Sky Sanders
Macromedia Fireworks is a product...try googling it ;)
Pondidum
What I need is something like this :-(http://www.americaslibrary.gov/es/index.php
sorry.. forgot my </sarcasm> tag
Sky Sanders
A: 

If a static HTML map is what you want, then use an ImageMap control

In winforms that may be a little more work than you want to do.

There are no 'shape' controls so you would have to define a virtual map and just monitor click events.

Your best bet is to use WPF or Silverlight. That would be a piece of cake. polys in WPF are first class citizens and have events. It will look real purty too.

And I am sure there are already defined maps xaml on the google. (map, article)

Sky Sanders
The question says asp.net.
David
What I need is something like this :-(http://www.americaslibrary.gov/es/index.php
Edited question. should cover all your options.
Sky Sanders