C# 仿百度自动匹配
2013-01-16 10:10
274 查看
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace WindowsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void comboBox1_TextChanged(object sender, EventArgs e) { } private void Form1_Load(object sender, EventArgs e) { // Create the list to use as the custom source. AutoCompleteStringCollection source = new AutoCompleteStringCollection(); source.AddRange(new string[] { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" }); // Create and initialize the text box. TextBox textBox = new TextBox(); textBox.AutoCompleteCustomSource = source; textBox.AutoCompleteMode = AutoCompleteMode.SuggestAppend; textBox.AutoCompleteSource = AutoCompleteSource.CustomSource; textBox.Location = new Point(20, 20); textBox.Width = ClientRectangle.Width - 40; textBox.Visible = true; // Add the text box to the form. Controls.Add(textBox); //comboBox1.DropDownHeight = 300; } }
相关文章推荐
- 仿百度输入框自动匹配功能的JS代码
- C#实现Combobox自动匹配字符
- c# 实现ComboBox自动模糊匹配
- C#实现ComboBox自动匹配字符
- C# 自动提交到百度ping服务
- 基于javascript实现仿百度输入框自动匹配功能
- jquery autocomplate 仿谷歌百度 自动匹配下拉 ajax
- 毕设之每天总结 五:模拟百度自动匹配
- C#:DataGridView中列类型使用时间控件和下拉列表的自动匹配
- C# 文本输入框自动匹配 自动完成
- 在C#中使用正则表达式自动匹配并获取所需要的数据 (转)
- 仿百度输入框自动匹配功能的JS代码
- c# 实现ComboBox自动模糊匹配
- JS实现仿百度输入框自动匹配功能的示例代码
- c# 搜索关键字的自动匹配
- 基于javascript实现仿百度输入框自动匹配功能
- JS仿百度搜索自动提示框匹配查询功能
- 模糊匹配仿百度自动下拉提示
- winform 模仿 百度搜索 时 自动匹配 效果
- JS仿百度自动下拉框模糊匹配提示