C#中时间设置的按钮框 [英] Button Box For Time Setting in C#

查看:80
本文介绍了C#中时间设置的按钮框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的编程C#



当我选择按钮框(SET TIME)时,只会出现数字1到12。



我怎么能这样做,你可以给我建议吗?





在C#编程中(窗口形式)



当我选择按钮时,

i想要出来1号

2
3

4

5

6

7

8

9

10

11

12

In my Programming C#

When i select Button Box(SET TIME), will come out number "1 to 12" only.

How can i do it, can u give me advice?


In C# Programming (Window Form)

When i select Button ,
i want to come out number 1
2
3
4
5
6
7
8
9
10
11
12

推荐答案

如果你真的需要在1 .. 12的集合中进行选择,这可以是列表框控件或(或许更好)组合框:

http://msdn.microsoft.com/en-us/library/system.windows.forms.listbox%28v=vs.110 %29.aspx [ ^ ],

http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox%28v=vs.110%29.aspx [ ^ ]。



我会质疑这种UI设计的整个想法。如果我知道它的确切目的,我会建议一些替代方案。或不。 :-)



-SA
If you really need to the selection in the set of 1.. 12, this can be either list box control or (perhaps better) combo box:
http://msdn.microsoft.com/en-us/library/system.windows.forms.listbox%28v=vs.110%29.aspx[^],
http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox%28v=vs.110%29.aspx[^].

I would question the whole idea of such UI design though. If I knew exact purpose of it, I would advice some alternative. Or not. :-)

—SA


这篇关于C#中时间设置的按钮框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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