locked
registry key to add menu item RRS feed

  • Question

  • is there a registry key wich i need to add to my cab_project to add a menu item to the contacts centext menu from wich i can call my app? (with contactid as parameter)
    Tuesday, March 24, 2009 12:55 AM

Answers

  • Hi,

    You need to build a Menu Extension to add an item to that context menu. Please read the following document which describes how to build a menu extension: 
    http://msdn.microsoft.com/en-us/library/ms879952.aspx 

    There are several samples for menu extensions here:
    http://msdn.microsoft.com/en-us/library/ms879577.aspx


    Regards,
    Chunsheng Tang
    Please mark the post that helps you, and unmark that does not. This benefits our community members.
    • Marked as answer by warrentang Monday, March 30, 2009 2:14 AM
    Thursday, March 26, 2009 1:56 AM
  • Hi,

    There is no "simple" solution unfourtunatly. The only API that is able to extend these menus is not easily accessable to .NET CF developers, meaning even C# developers have some non straight forward work to do to extend these menus.

    If you think this may be outside your current skill set and are prepared to look at purchasing an "off the shelf" solution you may like to investigate the "Mobile in the Hand" product (http://inthehand.com/content/Mobile.aspx).

    This has a InTheHand.WindowsMobile.Extensibility.MenuExtension class which enables simple menu extensions to be developed in C# or VB.NET etc. It is essentially a wrapper around the unmanaged APIs, but if you feel uncomfortable developing your own wrapper it may be an option worth investigating further.

    Hope this helps,
    Christopher Fairbairn.

    Visit my blog at http://www.christec.co.nz/blog/
    • Marked as answer by warrentang Monday, March 30, 2009 2:14 AM
    Friday, March 27, 2009 1:59 AM

All replies

  • Hi,

    You need to build a Menu Extension to add an item to that context menu. Please read the following document which describes how to build a menu extension: 
    http://msdn.microsoft.com/en-us/library/ms879952.aspx 

    There are several samples for menu extensions here:
    http://msdn.microsoft.com/en-us/library/ms879577.aspx


    Regards,
    Chunsheng Tang
    Please mark the post that helps you, and unmark that does not. This benefits our community members.
    • Marked as answer by warrentang Monday, March 30, 2009 2:14 AM
    Thursday, March 26, 2009 1:56 AM
  • the problem here is that i need a vb.net example. the c++/c# examples are to difficult to understand...
    Thursday, March 26, 2009 1:41 PM
  • Hi,

    There is no "simple" solution unfourtunatly. The only API that is able to extend these menus is not easily accessable to .NET CF developers, meaning even C# developers have some non straight forward work to do to extend these menus.

    If you think this may be outside your current skill set and are prepared to look at purchasing an "off the shelf" solution you may like to investigate the "Mobile in the Hand" product (http://inthehand.com/content/Mobile.aspx).

    This has a InTheHand.WindowsMobile.Extensibility.MenuExtension class which enables simple menu extensions to be developed in C# or VB.NET etc. It is essentially a wrapper around the unmanaged APIs, but if you feel uncomfortable developing your own wrapper it may be an option worth investigating further.

    Hope this helps,
    Christopher Fairbairn.

    Visit my blog at http://www.christec.co.nz/blog/
    • Marked as answer by warrentang Monday, March 30, 2009 2:14 AM
    Friday, March 27, 2009 1:59 AM