MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




mappoint 2002 in vb.net on a mdi child

This is a discussion on mappoint 2002 in vb.net on a mdi child within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am trying to use a mappoint 2002 control on a mdi child form in vb.net and always get "An ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-21-2002
Junior Member
White Belt
 
Join Date: Sep 2002
Posts: 2
mappoint 2002 in vb.net on a mdi child

I am trying to use a mappoint 2002 control on a mdi child form in vb.net and always get

"An unhandled exception of type 'System.ArgumentException' occurred in axinterop.mappoint.dll
Additional information: MapPoint failed to load. The cause of this failure is unknown."

The error occurs at the .openmap method which is called on the form load.

This is the code used to launch the form
Dim fMap As New frmMap()
fMap.MdiParent = Me
fMap.Show()

If I comment out the 'fMap.MdiParent = Me' it loads fine and displays the map.

I have seen some other people in user group postings with the same problem in vb.net and C#.net , but , no one with a fix???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 09-26-2002
Junior Member
White Belt
 
Join Date: Sep 2002
Posts: 2
Working Now

Ok,

I was able to get this working now by opening the map in a timer after the form was loaded. For some reason in vb.net on an mdi child it would
not work from the form load.

Now I am having the same problem I was having in VB6. Mappoint keeps blowing its container. When the form loads up, the mappoint application is loaded outside of its control container. If I unload the form then load it back Mappoint closes and it works fine (inside the container). The form loads fine every other time until I reboot the machine. I have reinstalled mappoint on 2 machines and still have the same problem.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
child, mappoint 2002, mdi, vbnet


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Mappoint 2002 with c# dave_behaving_badly MapPoint 2006/2009 Discussion 0 08-19-2003 07:49 AM
Help Using Mappoint 2002 As A COM in .Net Anonymous MapPoint 2006/2009 Discussion 0 05-21-2003 10:31 PM
MapPoint 2002 Anonymous MapPoint 2006/2009 Discussion 2 10-29-2002 12:25 PM
Hello. I am using MapPoint 2002. I am doing a lot .... Anonymous MapPoint 2006/2009 Discussion 1 06-24-2002 02:04 PM
I am currently using MapPoint 2002. Is there a wa.... Anonymous MapPoint 2006/2009 Discussion 1 10-27-2001 11:32 AM


All times are GMT -5. The time now is 02:53 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54