1

I'm trying to develop an outlook Add-in, when the addin button clicks it open a windos form. The windows form has a text field, In the text field when a name is typed it should show suggestion list as in outlook email "send to" field. I'm struggled with finding any source to read. Can anyone help :) ?

SliverNinja - MSFT
  • 31,051
  • 11
  • 110
  • 173
wattale
  • 93
  • 11
  • You can already do this in Outlook. When composing an email, type some letters in the `From` field and press Ctrl+K to bring up the Check Names dialog. – JimmyPena Jul 17 '12 at 14:40
  • yeagh that's right, but I'm implementing an outlook add-in which opens a separate windows form. I want to implement the same behaviour in that form too. In the windows form there is also a text box to type the receivers name, so when a user types receivers name I need the autocomplete functionality there as same as when we have when sending an email from outlook. – wattale Jul 17 '12 at 15:00
  • 1
    What Outlook version? I think you can leverage the existing dialog box in your addin by simply calling it to display when you need it. – JimmyPena Jul 17 '12 at 15:01
  • Outlook 2010, did you mean the "Address list dialog box". But requirenment is sugessioning contact info when type in a text box and display sugestions as in this link, http://www.devthought.com/2008/01/12/textboxlist-meets-autocompletion/ – wattale Jul 17 '12 at 15:49
  • 1
    Why reinvent the wheel, if I understand you correctly this should fulfill your requirements: http://msdn.microsoft.com/en-us/library/bb176400(v=office.12).aspx – JimmyPena Jul 17 '12 at 16:06
  • I still need to complete this module. couldn't find any solution pls help – wattale Jul 30 '12 at 11:39

1 Answers1

0

The SendTo list is pulled from the autocompletion list cache and is handled differently based upon Outlook versions. In Outlook 2010, you can use the Suggested Contacts folder, whereas in Outlook 2007 and below it is contained in a hidden NK2 file.

See related link on how to manage the autocompletion cache.

SliverNinja - MSFT
  • 31,051
  • 11
  • 110
  • 173
  • Those are good stuff you have posted SilverNinja :). But I'm more struggled with how to show these suggestions as it is in outlook in a windows form. – wattale Jul 17 '12 at 13:54
  • Have you seen this [SO post](http://stackoverflow.com/a/800407/175679) regarding Winform Textbox Autocompletion? – SliverNinja - MSFT Jul 17 '12 at 14:28
  • 1
    Seems like this is the only options I have http://pholpar.wordpress.com/2010/02/25/multivalue-autocomplete-winforms-textbox-for-tagging/, thanks guys – wattale Jul 17 '12 at 15:17