TextBox like Baidu implemented drop-down display Z

Source: Internet
Author: User

list<string> Data = new list<string> (); String randomstr = " Kung Fu black pepper hcbvf Honeycomb qwertyuiopasdfghjklzxcvbnm France recovery to fly Edwin van der Sar qwertyuiopasdfghjklzxcvbnm appeared overheated 423 stickers ①46546 also have incensed just recovered to paste 3 talent as head 3 wide I let him        ";        Random rd = new Random (Getrandomseed ());            static int getrandomseed () {byte[] bytes = new Byte[4]; System.Security.Cryptography.RNGCryptoServiceProvider rng = new            System.Security.Cryptography.RNGCryptoServiceProvider (); Rng.            GetBytes (bytes);        Return Bitconverter.toint32 (bytes, 0);            } public Form1 () {InitializeComponent (); for (int i = 0; i < 20000000; i++) {Data.add (randomstr.tochararray) [Rd. Next (Randomstr.length)]. ToString () + Randomstr.tochararray () [Rd. Next (Randomstr.length)]. ToString () + Randomstr.tochararray () [Rd. Next (Randomstr.length)]. ToString () + Randomstr.tochararray () [Rd. Next (Randomstr.length)]. ToSTring () + Randomstr.tochararray () [Rd. Next (Randomstr.length)].            ToString ());            } this.textBox1.AutoCompleteCustomSource.Clear ();            This.textBox1.AutoCompleteCustomSource.AddRange (Data.toarray ());            This.textBox1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;        This.textBox1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource; }

Polygon is the effect of 2000W data loading

TextBox like Baidu implemented drop-down display Z

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.