MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Cancel MapPoint Quit

This is a discussion on Cancel MapPoint Quit within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Is there any way to keep MapPoint from exiting when a user tries to quit it. I have an application ...


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

Today's Posts Twitter Feed 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 06-08-2006
Junior Member
Yellow Belt
 
Join Date: Jun 2006
Posts: 14
Cancel MapPoint Quit

Is there any way to keep MapPoint from exiting when a user tries to quit it. I have an application that uses MapPoint primarily in the back ground, but I allow MapPoint to be visible for the purpose of looking at routes and getting route related information (in the future it will support pseudo multiple routes). The problem is that if I close MapPoint from the MapPoint window rather than from my application's "Hide MapPoint" button, the application will crash. I have tried reinstantiating the MapPoint.ApplicationClass class when a MapPoint._ApplicationEvents_QuitEventHandler event occurs. I even set all MapPoint related identifiers to null. This does not work as expected. The application will still crash. Has anyone ever tried to do this? How do you get it done?
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 06-08-2006
Winwaed's Avatar
Mapping-Tools.com
Black Belt
 
Join Date: Feb 2004
Posts: 1,142
Blog Entries: 22
From memory, I think the quit event handler returns a value, allowing you to disable the quit behaviour??

If not, you could use the MapPoint control instead of the standalone app. You could also control/disable other user-interaction actions as well, then. It may also look more seamless for the user?


Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
See the Geoweb Guru for online mapping
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 06-09-2006
Junior Member
Yellow Belt
 
Join Date: Jun 2006
Posts: 14
The quit event cannot be cancelled, according to MSDN Library.

I don't know why, but I can't seem to disable user control. Seems like the MapPoint control is my best option. I agree that the look of the UI will be more cohesive that way. Even though the UI looks good now, better is always best (when feasable of course).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 06-09-2006
Junior Member
Yellow Belt
 
Join Date: Jun 2006
Posts: 14
I went ahead and used the control. Didn't take more than 10 minutes to get worked out. Thanks for the suggestion.
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
cancel, mappoint, quit


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
Where is the Quit event? Anonymous MapPoint 2006/2009 Discussion 3 04-08-2005 07:36 AM
Cancel Mouse Buttons in Mappoint using VB.NET Anonymous MapPoint 2006/2009 Discussion 0 02-27-2004 05:20 AM


All times are GMT -5. The time now is 01:27 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Lanzarote Holiday
Enjoy a Lanzarote holiday when you check out the offers on UlookUbook and save cash!



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 55 56 57 58 59