如何通过数字顺序C#强制选择组合框中的值 [英] How to obligate choose values in combobox by number order C#

查看:78
本文介绍了如何通过数字顺序C#强制选择组合框中的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

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

我认为我必须在Combobox中使用CheckItemchange检查所选值。



但我不清楚如何编码。

所以,请帮我完成这项任务!



谢谢!



我的尝试:



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

Hi all!
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.
I thought i must use Check selected value with SelectedItemchange in Combobox.

But i don't clear how to code.
So, please help me how to do this task!

Thanks you!

What I have tried:

How to obligate choose values in combobox by number order C#

推荐答案

引用:

我有一个带阵列的组合框(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.


这篇关于如何通过数字顺序C#强制选择组合框中的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆