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