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 3 of 3

Using mappoint automation in .NET without GUI

This is a discussion on Using mappoint automation in .NET without GUI within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hey all, I need the Mappoint automation to calculate a few routes using .NET. Everything works fine, however only when ...

  1. #1
    tsay is offline Software engineer White Belt
    Join Date
    May 2007
    Location
    Belgium
    Posts
    2

    Using mappoint automation in .NET without GUI

    Hey all,

    I need the Mappoint automation to calculate a few routes using .NET. Everything works fine, however only when I actually display the form that contains the Mappoint automation. The fact is that I need to create a DLL to be used with an Navision Application Server. A Navision Application Server doesn't allow a GUI interface so it crashes if I show the form. There's no solution here, a NAS cannot work with GUI, period.

    So my question to you guys, is it possible to use the Mappoint automation without actually displaying the form?

    Tnx for the help/suggestions.

    rgds,
    tsay

  2. #2
    tsay is offline Software engineer White Belt
    Join Date
    May 2007
    Location
    Belgium
    Posts
    2

    Re: Using mappoint automation in .NET without GUI

    GOT IT!

    You have to actually drag & drop the control from the toolbox to your form and then use that variable instead of creating your own in code...

    I put the initialize code in the public sub new of the form and in my class I just create a new instance of the form, but never call the show method. This is exactly what I had done before, but instead I had created my own Mappoint control in the public sub new...

  3. #3
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: Using mappoint automation in .NET without GUI

    Hi,

    Thanks for feedback, this benefits other users. Another option could be to not use the control but instead use the object model also without making it visible.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. MapPoint Automation with C/C++ - Part 1
    By Eric Frost in forum MP2K Magazine Articles
    Replies: 10
    Last Post: 09-15-2006, 11:01 AM
  2. MapPoint Automation with C/C++ - Part 2
    By Eric Frost in forum MP2K Magazine Articles
    Replies: 1
    Last Post: 09-20-2005, 11:00 AM
  3. Automation -- Unable to kill mappoint.exe
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 02-03-2004, 11:12 PM
  4. Error in VBA automation of MapPoint when PO BOX is found
    By JPeters in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 01-09-2003, 10:40 AM
  5. I am using Mappoint with Visual C++ via automation....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 07-08-2002, 02:07 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