使Combox不能输入的两种方法。 方法一、 选择combox的 DropDownStyle = DropDownList 选择框不能输入。 方法二、 (1)选择 combox的 DropDownStyle = DropDown; (2)设置combox的 KeyPress事件 private void cbDeviceType_KeyPress(object sender, KeyPressEventArgs e) |
|
来自: goodwangLib > 《C#》