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

SelectionChange Event

This is a discussion on SelectionChange Event within the MapPoint Desktop Discussion forums, part of the Map Forums category; With the SelectionChange Event: object.SelectionChange(NewSelection, OldSelection) NewSelection ByVal Object. The newly selected Direction, Location, Pushpin, Shape, or Waypoint object on ...

  1. #1
    calv1ns's Avatar
    calv1ns is offline Member Green Belt
    Join Date
    Mar 2005
    Posts
    91

    SelectionChange Event

    With the SelectionChange Event:

    object.SelectionChange(NewSelection, OldSelection)

    NewSelection ByVal Object. The newly selected Direction, Location, Pushpin, Shape, or Waypoint object on the map.

    Does anyone know of a easy yet fool proof way to determine which one of Direction, Location, Pushpin, Shape, or Waypoint object the NewSelection object is?

    Most of these have a Type property but the type values are not unique between Objects.

    Ciao,
    Calv1ns

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

    Code:
    if (NewSelection is Location)
        // it is a Location object
    or

    Code:
    Location loc = NewSelection as Location;
    if (loc != null)
        // it is a Location object
    In VB something similar.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. SelectionChange event
    By Yazzy in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 05-16-2006, 10:25 AM
  2. Where is the Quit event?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 04-08-2005, 08:36 AM
  3. VC++ OnSelectionChange event
    By MP2KUser2 in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 10-13-2004, 02:24 PM
  4. How to add click event for VB.Net ?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 12-31-2003, 01:15 AM
  5. mouse down event
    By henemonster in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-31-2003, 03:04 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