Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

clickable world map 8

Status
Not open for further replies.

peterve

IS-IT--Management
Mar 19, 2000
1,348
NL
Hi all,

I want to include a world map in my VB.Net application.
The map needs to be clickable (based on countries) and I want to have the option to fill each country in a different country

Does anyone have an idea on how to do this ?

thanks

P

--------------------------------------------------------------------
--------------------------------------------------------------------
How can I believe in God when just last week I got my tongue caught in the roller of an electric typewriter?
---------------------------------------------------------------------
 
very odd I copied the code into my .NET project and on this line I get an error:

code:
Dim imgClickMap As New Bitmap("USAClickMap.bmp")

with this error:
An unhandled exception of type 'System.ArgumentException' occurred in system.drawing.dll
Additional information: Invalid parameter used.

When I run your .exe it works great though
must be my version of .NET

To go where no programmer has gone before.
 
I had the same issues when I tried to load it in VS 2k2. So I beat on it until I got something to run. I had to set a bunch of gui stuff in the constructor. I don't have time at the moment to figure out why, but here is a VS 2k2 compatible version:
-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
>very odd I copied the code into my .NET project and on this line I get an error:

code:
Dim imgClickMap As New Bitmap("USAClickMap.bmp")


You need to provide the full path of "USAClickMap.bmp", or put it in the default directory (bin, I think).
 
The original package (and the new one) contains the bin folder w/ the images included. The next problem was some conversion issue where the "windows generated code" kept puking on the line where it was trying to set the image of the picture box. Anyways, the 2k2 version should work for those of us stuck in the past ;)

-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top