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

vb to c# error question

This is a discussion on vb to c# error question within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi I have a mapppoint ocx on my main formed called map1. in vb.net the following line works with no ...

  1. #1
    starbuck's Avatar
    starbuck is offline Member Green Belt
    Join Date
    Oct 2003
    Posts
    68

    vb to c# error question

    Hi

    I have a mapppoint ocx on my main formed called map1.
    in vb.net the following line works with no problem]
    map1.activemap.datasets("jobs").delete()
    how the same line in c# produces the following error
    mappoint.maps.datasets denotes a property where a method was expected.
    Any thoughts folks

    Thanks in advance

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Try something like this:
    Code:
    map1.activemap.datasets["jobs"].delete()
    Also, make sure that the case is correct - C# is more picky that VB on that, and if the case is incorrect, intellisense doesn't work as nicely as in VB.

    Mike Hildner

  3. #3
    starbuck's Avatar
    starbuck is offline Member Green Belt
    Join Date
    Oct 2003
    Posts
    68

    cool

    Thanks Mike

    Will give that a go

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Mappoint Error
    By Mudrover in forum MapPoint Desktop Discussion
    Replies: 5
    Last Post: 01-20-2005, 03:59 PM
  2. About ERROR 4-40028-1. Error or Bug ?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 12
    Last Post: 01-11-2005, 10:32 AM
  3. I get this following error
    By ananthdeena in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 01-01-2005, 03:46 AM
  4. Error 4605 ?
    By Syd in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-12-2004, 05:05 AM
  5. Error message
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 03-16-2003, 09:11 PM

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