用TextBox和ListBox组和在TextBox的TextChaged事件中模糊查询后绑定ListBox的子项。

解决方案 »

  1.   

    那位置怎么控制,ListBox的高度怎么控制,
      

  2.   

    你可以试试这个
    winfrom textbox输入智能提示核心代码://下面3行用设置智能提示
                this.textBox1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
                this.textBox1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
                this.textBox1.AutoCompleteCustomSource = ac;//设置数据源其中     AutoCompleteStringCollection ac = new AutoCompleteStringCollection();本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/LCL_data/archive/2009/12/18/5032160.aspx
      

  3.   

    数据源自己指定
    或者参考我的那篇bolg
      

  4.   

    这个在VS2005下怎么不行,你引用的using System.Linq;在.net 2.0下没有
    请问跟这个有关吗
      

  5.   

    是我数据源搞错了,你这个模糊查询还是只能根据输入的文本,不能即根据Text又根据value进行查