Hello all, I am trying to complete an assignment, and while I do not have a coding question per se, I am having trouble deciding on what object to use. I am trying to take a computed value from a masked text box, put it in an array, have those totals listed on the GUI(this is the object I am unsure of), and be able to total that array into a grand total box(which is a maskedtext). Which would be the best object from the toolbox? ListBox? MaskedTextBox? If I am unclear on any aspect I apologize.
What tool do I use?
Page 1 of 12 Replies - 644 Views - Last Post: 17 October 2012 - 05:32 PM
Replies To: What tool do I use?
#2
Re: What tool do I use?
Posted 08 October 2012 - 04:01 PM
A 'value' is vague. A value can be 5, or it can be "Yogi Bear". Or it can be a complex custom object with properties for name, age, weight and phone number.
if its a number, use the NumericUpDown as it will simplify your life when it comes to validating user input.
if its a number, use the NumericUpDown as it will simplify your life when it comes to validating user input.
#3
Re: What tool do I use?
Posted 17 October 2012 - 05:32 PM
Since all you want to do is "display" values, and don't need to interact with them, use a label. Labels are for displaying values. Your grand total should be in a label too, since all you're doing is displaying it. Masked text boxes are for controlling user input.
This post has been edited by BobRodes: 17 October 2012 - 05:33 PM
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|