Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted
Updated 2-Dec-13 4:06am
v2
Comments
Adam Zgagacz 2-Dec-13 9:21am    
Can you provide more info? What do you mean by "button box"? Perhaps if you post some code it will help.
OriginalGriff 2-Dec-13 9:40am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
I have never heard of a "Button Box", so you need to explain what it is, where you got it, and what you are trying to do with it.
And some idea of why "1 to 12" is wrong would probably help as well!
Use the "Improve question" widget to edit your question and provide better information.
Karthik_Mahalingam 2-Dec-13 10:13am    
Please add more info to your question. paste some code block
OriginalGriff 2-Dec-13 11:08am    
Ok, you've added some, but that doesn't help us much, if at all.
Take a step back, forget everything you know about your project, and assume that there are thousands of different ways you could do anything. Now, read your question and see if you can work out what you need help with - because we can't!
joshrduncan2012 2-Dec-13 11:37am    
What do you mean by "come out"?

1 solution

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
 
Share this answer
 
Comments
CPallini 2-Dec-13 13:01pm    
Well, it makes sense.
5.
Sergey Alexandrovich Kryukov 2-Dec-13 15:39pm    
Thank you, Carlo.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900