Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 4 of 4

Cancel MapPoint Quit

This is a discussion on Cancel MapPoint Quit within the MapPoint Desktop 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 ...

  1. #1
    revelashon is offline 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?

  2. #2
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60
    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

  3. #3
    revelashon is offline 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).

  4. #4
    revelashon is offline 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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Where is the Quit event?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 04-08-2005, 08:36 AM
  2. Cancel Mouse Buttons in Mappoint using VB.NET
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 02-27-2004, 06:20 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96