如何获取“检查名称”使用C#在微软工作模板中进行对话? [英] How to Get a "check names" dialogue in microsoft work template using C#?

查看:95
本文介绍了如何获取“检查名称”使用C#在微软工作模板中进行对话?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从Visual Studio / C#中的Microsoft Word模板中创建类似于Outlook中的检查名称对话框?我创建了一个文本框,我希望用户单击一个按钮,该按钮将输入的文本作为输入参数。有没有办法以视觉工作室2008-2012(c#)中的outlook从我的全球地址列表中以某种方式调用支票名称对话框?



谢谢

How can I make a check names dialogue similar to the one in outlook from a microsoft word template in Visual Studio/C# ? I made a text box and I expect the user to click a button, which will take the text entered as input parameter. Is there a way to invoke somehow the check names dialogue from my global address list from outlook in visual studio 2008-2012(c#)?

Thanks

推荐答案

这不是你要求的,但可能很有用。您可以实现自动完成机制。它将在用户输入名称时检查名称。要使用它,您必须使用ComboBox控件,并填充属性:

It''s not exactly what you''re asking for, but may be usefull. You can implement autocompletion mechanism. It will check names while user types names in. To use it, you have to use ComboBox control, and fill properties:
Items - with contact collection.
AutoCompleteMode - to Apped.
AutoCompleteSource - to ListItems.





要从Outlook获取联系人,请使用Office Interop程序集。

http://msdn.microsoft.com/en-us/ library / 15s06t57%28v = vs.80%29.aspx [ ^ ]


这篇关于如何获取“检查名称”使用C#在微软工作模板中进行对话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆