Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Dec 2013

    Pushpin methods not available in Visual Basic?

    I am attempting to move an old Visual Basic Windows Phone 7.1 app from Bing to Nokia maps. I would like to the markers on the map to be links to allow viewing addition details about that point in the map.

    When I program in C# I see many more methods than I do in VB. In fact, I see virtually no methods in VB that would allow me to detect that the victim has tapped on a marker on the map.
    What I do in my C# projects is:

    pinLocal.MouseLeftButtonUp += pin_MouseLeftButtonUp;

    to have code executed on a mouse event on the marker. The MouseLeftButtonUp method does not appear to be available if my project uses VB.

    Hopefully, I am just doing something stupid, a specialty, but I cannot seem to see why the methods I want work in C# but not VB.


  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2013

    Re: Pushpin methods not available in Visual Basic?

    I'm not an expert in VB but based on my experience with C# this looks like some "using" statement might be missing or as if for some reason you'd not be using the same control/same version of the control. Given that it's a .Net control you should not have a different visibility.

    When creating two new projects in Visual Studio for testing purposes, one C# and one VB.Net and you add the control from the toolbox - do you see the behavior you've mentioned above or does this only happen in the project you're updating from WP7.1?

  3. #3
    Registered User
    Join Date
    Dec 2013

    Re: Pushpin methods not available in Visual Basic?

    I have made two simple projects to compare the behavior of VB versus C#. Both have the exact XAML, references and using/import statements.

    It turns out that none of the 'action' methods show in intellisense or are allowed in Visual Studio. This seems to be a feature of VB and not specific to maps. I have never tried adding controls dynamically in VB before so never noticed the lack of these methods.

    Thanks a lot for your logical suggestion.

Similar Threads

  1. Bluetooth in Visual Basic 6, is it possible?
    By carypotter in forum Bluetooth Technology
    Replies: 0
    Last Post: 2004-06-13, 03:15
  2. D211 SMS from Visual Basic
    By in forum Multimodecards
    Replies: 3
    Last Post: 2004-05-22, 20:23
  3. Visual Basic and SDK 3.0
    By giovanni26 in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2002-12-19, 14:10
  4. visual basic usersettings
    By eskesen in forum Nokia M2M
    Replies: 1
    Last Post: 2002-10-08, 04:21
  5. SMS using visual basic
    By a_bemby in forum General Messaging
    Replies: 1
    Last Post: 2002-09-03, 11:21

Posting Permissions

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