自动填写电子邮件地址和/或C#中的名称 [英] Autocomplete email address and/or names in C#

查看:174
本文介绍了自动填写电子邮件地址和/或C#中的名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找像这里讨论的解决方案,但是对于C#WinForms。
链接到这里



要重新表述,是否可以使用多行的单个数据源在C#中执行文本框自动完成?结果应该像Gmail的TO:字段创建电子邮件,或类似的MS Outlook的TO:字段。



例如,数据集可能是: $ bJohn Williams(john.williams@gmail.com)

Bob Johnson(john.jacobs@gmail.com)

Willy Johnston(willy .williams @ gmail.com)

Willy Williams(johnjohn@gmail.com)



...和我应该能够输入john,并且建议所有的四个。如果我键入johns,那么第二和第三个条目将被建议。



这比.NET默认提供的自动完成更为先进。

谢谢,
-Greg

解决方案

自己的UserControl自定义类来处理这个。我没有看到满足我需要的东西。



我在BSD下提供了源代码和DLL:
http://code.google.com/p/email-autocomplete



基本上,它模拟了Gmail上To:框的功能,但在.NET中。


I'm looking for a solution like the one discussed here, but for C# WinForms. Link here

To rephrase, is it possible to do textbox autocompletes in C# using a single data source with multiple lines? Result should be like Gmail's TO: field in creating emails, or similarly MS Outlook's TO: field.

For example, the data set might be:
"John Williams" (john.williams@gmail.com)
"Bob Johnson" (john.jacobs@gmail.com)
"Willy Johnston" (willy.williams@gmail.com)
"Willy Williams" (johnjohn@gmail.com)

... and I should be able to type "john" and all four would be suggested. If I typed "johns" then the second and third entries would be suggested.

This is more advanced than the auto-complete provided by .NET by default.

Thanks, -Greg

解决方案

I ended up writing my own UserControl custom class to take care of this. It didn't appear there was anything out there that met my needs.

I've provided the source and DLL here under BSD: http://code.google.com/p/email-autocomplete

Basically, it emulates the functionality of the "To:" box on Gmail but of course in .NET.

这篇关于自动填写电子邮件地址和/或C#中的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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