-1

Im currently working on a project about states in my country, and Im trying to create a map where you can click on a state and something happens (e.g. a question pops-up or information is shown once you click), but I just dont know how to do it. Ive tried to shape a button into a state, but the only possible shape is a rectangle, same with picture boxes. I`ve tried to search it up on google, but no success. So, is there any possible way to do it in Visual Studio, or do I need a 3rd party program? Thanks.

P.S.: Something like this https://mapchart.net/world.html Edit: i`m using WinForms platform

buku
  • 1
  • 1
  • 1
    What platform are you using? WinForms, WPF, UWP, Web? – dotNET May 05 '19 at 19:18
  • Examples: [1](https://stackoverflow.com/questions/33478564/interactiveclickable-map/33480232#33480232), [2](https://stackoverflow.com/questions/25701778/make-a-map-of-buttons/25703170#25703170) and [3](https://stackoverflow.com/questions/28373615/create-custom-shape-for-button/28376826?r=SearchResults&s=3|23.2434#28376826) – TaW May 05 '19 at 19:30

1 Answers1

0

Coincidentally, this is related to what you are trying to do!

Check out the code locally in firefox.

What you need is: 1x world map like that in the url and many masks for each country.

You detect which country the user is hovering over/clicks by checking for the masks (white pixel). Its the same approach as what I linked.

Aphton
  • 91
  • 1
  • 3