예제 #1
0
파일: Main.cs 프로젝트: fanxy121/AllInOneAV
        private void InitAutoComplete()
        {
            var source = new AutoCompleteStringCollection();

            source.AddRange(ScanDataBaseManager.GetSearchHistory().Select(x => x.Content).ToArray());

            textBox1.AutoCompleteCustomSource = source;
            textBox1.AutoCompleteMode         = AutoCompleteMode.SuggestAppend;
            textBox1.AutoCompleteSource       = AutoCompleteSource.CustomSource;
        }