Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对 Windows 窗体中的 C# 组合框有一个小问题。我创建了一个组合框,我不希望用户在其中输入值,用户应该只选择其中可用的值。我应该怎么办?
将组合框的下拉样式属性更改为 DropDownList
将 DropDownStyle 设置为"DropDownList"
"DropDownList"
将 dropdownstyle 属性更改为下拉列表。
我有一个如下表:
ID Title StartDate EndDate 1 PromoA 2012-06-01 2012-08-01 2 PromoB 2011-01-01 2011-02-01 3 PromoC 2012-09-01 2012-10-01 4 Pr