且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何通过数字顺序C#强制选择组合框中的值

更新时间:2023-02-23 12:46:21

引用:

我有一个带阵列的组合框(24,01,02,03,04,05)。我想用户必须选择组合框中的第一个值(这个例子是24)然后可以继续选择下一个数字。

I have a combobox with array (24,01,02,03,04,05). I want to user Obligatory choose the first value in the combobox (as this example is 24) then could continue choose next number.



组合框的原理给予用户选择在数组中。

如果没有选择,为什么要使用组合框?

只需拆分你的值想要,没有用户输入。


The principle of combobox is to give user a choice in array.
Why do you want to use a combobox if there is no choice?
Just split the value you want, no user input.


是的,没错!但是用户有时忘记选择第一个值让我从另一个表中丢失主键。



我希望他们选择值作为顺序数组。
yes, that right! But user sometime forget choose the first values make me missing Primary key from another table.

I want they will choose values as sequency array.