vs中自带功能,能否类似效果。
不行的话使用继承textBox类的话出现的问题是,当ToolStripDropDown show()时textBox的焦点被抢。public class TextBoxDropDown : TextBox
    {
        ToolStripDropDown dropDown = null;
        public TextBoxDropDown()
        {
            dropDown = new ToolStripDropDown();
            dropDown.Width = 50;
            dropDown.Items.Add("aa");
            dropDown.Items.Add("aaa");
            dropDown.Items.Add("aab");
            this.TextChanged += new EventHandler(TextBoxDropDown_TextChanged);        }        void TextBoxDropDown_TextChanged(object sender, EventArgs e)
        {
            //if (sender != null)
                ShowDropDown();
        }        private void ShowDropDown()
        {
            //try
            //{
            if (this.dropDown != null)
            {
                this.dropDown.Show(this, 0, Height);
                
                //this.FindForm().GetNextControl(this, true).Focus();
            }
            //}
            //catch (Exception ee)
            //{
            //    string ss = ee.Message;
            //}
        }
    }