回复:c#的Winform如何让ComboBox不显示下拉框?https://bbs.csdn.net/topics/392565412

            组合框.Parent = this;
            组合框.Items.AddRange(new object[] { "111", "222", "333", "444" });
            组合框.DropDownHeight = 1;
            组合框.SelectedIndex = 0;
            //组合框.DropDownStyle = ComboBoxStyle.Simple;
            ComboBox 组合框 = new ComboBox();
            List aaa = new List();
            int aaaa = 0; while (++aaaa < 10) aaa.Add(aaaa.ToString());
            组合框.DataSource = aaa;
            组合框.Parent = this;
            //组合框.Items.AddRange(new object[] { "111", "222", "333", "444" });
            //组合框.DropDownHeight = 1;
            组合框.SelectedIndex = 0;
            //组合框.DropDownStyle = ComboBoxStyle.Simple;

缘由https://bbs.csdn.net/topics/395430686

回复:c#的Winform如何让ComboBox不显示下拉框?https://bbs.csdn.net/topics/392565412_第1张图片

回复:c#的Winform如何让ComboBox不显示下拉框?https://bbs.csdn.net/topics/392565412_第2张图片

你可能感兴趣的:(c#,windows,开发语言)