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

GeoOneMinute in VB.net 2005 express

This is a discussion on GeoOneMinute in VB.net 2005 express within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, I'm, trying to create a DriveTimeZone with Visual-Basic 2005 Express with this codesample (MapPoint 2006 is installed and works): ...

  1. #1
    FreddyD is offline Junior Member White Belt
    Join Date
    Dec 2006
    Location
    Cologne in Germany
    Posts
    4

    Question GeoOneMinute in VB.net 2005 express

    Hi,

    I'm, trying to create a DriveTimeZone with Visual-Basic 2005 Express with this codesample (MapPoint 2006 is installed and works):
    ...
    Me.AxMappointControl1.ActiveMap.Shapes.AddDrivetimeZ one(objLoc, 5 * geoOneMinute)
    ...

    warning-message: The Name "geoOneMinute" was not declared.

    The Code doesn't work.
    Is there somewhere who knows the reason? And what have I to do?
    P.S. In VB 6.0 it works correctly.

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

    Re: GeoOneMinute in VB.net 2005 express

    Hi,

    Probably some file not included. Dont search for it:

    1 minute is: 1/1440
    1 second is: 1/86400

    So you can forget the geo* and now it is more easy

    in your example it becaumes 5 / 1440

  3. #3
    FreddyD is offline Junior Member White Belt
    Join Date
    Dec 2006
    Location
    Cologne in Germany
    Posts
    4

    Re: GeoOneMinute in VB.net 2005 express

    Hallo Wilfried,

    this code works really good, thanks a lot for your help.

    rgds, FreddyD

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. help on converting vba code to visaul basic 2005 express
    By nmilne in forum MapPoint Desktop Discussion
    Replies: 7
    Last Post: 01-24-2007, 02:16 PM
  2. MapPoint 2005
    By mfritz in forum MapPoint Desktop Discussion
    Replies: 7
    Last Post: 04-11-2005, 07:58 PM
  3. MapPoint 2005??
    By John Cassell in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 04-06-2005, 06:09 AM
  4. MapPoint 2005/6/7...
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 09-07-2004, 10:49 AM
  5. Autoroute express
    By tanguy_laverdure in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 04-16-2004, 05:30 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