How to Disable comboBox if other comboBox is selected (C#)

后端 未结 4 1554
臣服心动
臣服心动 2021-01-03 09:21

Is there anyway to disable a combobox if a different combobox has some sort of text or value in it. I have tried a couple things and can\'t seem to get it to work.

B

4条回答
  •  清歌不尽
    2021-01-03 10:18

    You can handle the SelectedValueChanged event of both the combo boxes and if any of the combo has your required value disable the other one

提交回复
热议问题