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

Add-In Form Does Not Receive Keys

This is a discussion on Add-In Form Does Not Receive Keys within the MapPoint Add-ins and Related Products forums, part of the Map Forums category; I want to add some common keystroke functions to my add-in. For example, Control+S saves information from the Add-Ins main ...

  1. #1
    SatelliteSurfer is offline Junior Member Yellow Belt
    Join Date
    Jul 2009
    Posts
    17

    Add-In Form Does Not Receive Keys

    I want to add some common keystroke functions to my add-in. For example, Control+S saves information from the Add-Ins main form. However, when I press Control and S, the Save Dialog for MapPoint appears rather than saving the information from my add-in.
    I have tried setting the KeyPreview on the Form to true but it did not seem to help capture the key event. Similarly, I find I am not able to use the Tab key to move between fields on the Form.
    My add-in is built on C# using Visual Studio 2008 Standard.
    Any ideas?

    Joe

  2. #2
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,806
    Blog Entries
    52

    Re: Add-In Form Does Not Receive Keys

    Are you sure your add-in's dialog has the focus? I haven't tried using hotkeys such as Control-S with addins, but I have tested the tab order of controls in my dialog boxes (yes C# ones) and TAB does work..
    Winwaed Software Technology LLC
    http://www.winwaed.com
    See http://www.mapping-tools.com for MapPoint Tools

  3. #3
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,069
    Blog Entries
    4

    Re: Add-In Form Does Not Receive Keys

    Can you have hidden or 1px buttons with the shortcut key assigned? I'm not sure if it would still conflict with the built-in shortcut keys, so maybe only use ones that don't conflict?

    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  4. #4
    SatelliteSurfer is offline Junior Member Yellow Belt
    Join Date
    Jul 2009
    Posts
    17

    Re: Add-In Form Does Not Receive Keys

    Quote Originally Posted by Winwaed View Post
    Are you sure your add-in's dialog has the focus? I haven't tried using hotkeys such as Control-S with addins, but I have tested the tab order of controls in my dialog boxes (yes C# ones) and TAB does work..
    Thanks for replying! The main window of the add-in has focus when I attempt to Tab between fields or use a hotkey. When I use a Control-S or Control-O, the Save and Open dialogs for MapPoint appear but my add-in does not react. My add-in has its own dialog for Options. In the Options dialog, I can use the Tab key to navigate between fields.

    Joe

  5. #5
    SatelliteSurfer is offline Junior Member Yellow Belt
    Join Date
    Jul 2009
    Posts
    17

    Re: Add-In Form Does Not Receive Keys

    Quote Originally Posted by Eric Frost View Post
    Can you have hidden or 1px buttons with the shortcut key assigned? I'm not sure if it would still conflict with the built-in shortcut keys, so maybe only use ones that don't conflict?

    Eric
    Thanks! I might give that a try.

    Joe

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. how receive data from unit through port
    By meenu in forum General Chat
    Replies: 1
    Last Post: 05-28-2008, 06:09 AM
  2. Help To Program Hot Keys
    By knewman in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-10-2006, 09:08 AM
  3. Disable shortcut keys
    By pobe in forum MapPoint Desktop Discussion
    Replies: 5
    Last Post: 10-21-2005, 12:26 PM
  4. Send zip code & distance, receive list of zips back?
    By morfy50 in forum Bing Maps and MapPoint Web Service
    Replies: 1
    Last Post: 08-02-2005, 07:34 AM
  5. An unexpected error occurred on a receive
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 01-27-2005, 02:11 AM

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