dotnet/winforms
在 GitHub 查看The height of the "DropDown" list for the combobox control can't be reset default height after called the " comboBox1.Items.Clear();" method
Open
#339 创建于 2019年1月21日
:beetle: bug:construction: work in progresshelp wanted
仓库指标
- Star
- (4,100 star)
- PR 合并指标
- (平均合并 14天 22小时) (30 天内合并 56 个 PR)
描述
OS : RS4 X64+.Net 4.8.03316 VS : Dev16 d16.0stg 16.0 Preview 3 28505.103
More info:
- This issue can reproduce from VS Dev10 to Dev16.
- This issue can't reproduce when adding the following code to Form1.Designer.cs.
comboBox1.Items.AddRange(new object[] { "a", "b", "c", "d", "e" });
comboBox1.Items.Clear();
Steps to reproduce:
- Create a Winforms application.
- Drag a Combobox control to form designer.
- Add the following code to Form1.cs.
private void Form1_Load(object sender, EventArgs e)
{
comboBox1.Items.AddRange(new object[] { "a", "b", "c", "d", "e" });
comboBox1.Items.Clear();
}
Actual:
The height of the "DropDown" list for the combobox control can't be reset default height after called the " comboBox1.Items.Clear();" method.

Expected:
The height of the "DropDown" list for the combobox control should be reset default height after called the " comboBox1.Items.Clear();" method.
