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 属性更改为下拉列表。