2 Replies - 1155 Views - Last Post: 17 October 2012 - 05:32 PM Rate Topic: -----

#1 foxgonzo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 08-October 12

What tool do I use?

Posted 08 October 2012 - 03:51 PM

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.

Is This A Good Question/Topic? 0
  • +

Replies To: What tool do I use?

#2 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5316
  • View blog
  • Posts: 11,355
  • Joined: 02-June 10

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.
Was This Post Helpful? 0
  • +
  • -

#3 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 571
  • View blog
  • Posts: 2,979
  • Joined: 19-May 09

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

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1