Inheritance: System.Windows.Forms.ToolStripDropDown
Example #1
0
        //private int selectedItemIndex;

        public AutocompleteMenu()
        {
            Host = new AutocompleteMenuHost(this);
            Host.ListView.ItemSelected += new EventHandler(ListView_ItemSelected);
            VisibleItems   = new List <AutocompleteItem>();
            Enabled        = true;
            AppearInterval = 500;
            timer.Tick    += timer_Tick;
            MaximumSize    = new Size(180, 200);

            SearchPattern     = @"[\w\.]";
            MinFragmentLength = 2;
        }
        public AutocompleteMenu()
        {
            Host = new AutocompleteMenuHost(this);
            Host.ListView.ItemSelected += new EventHandler(ListView_ItemSelected);
            VisibleItems = new List<AutocompleteItem>();
            Enabled = true;
            AppearInterval = 500;
            timer.Tick += timer_Tick;
            MaximumSize = new Size(180, 200);

            SearchPattern = @"[\w\.]";
            MinFragmentLength = 2;
        }