VB Project

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gruvon69
    New Member
    • Oct 2006
    • 2

    #1

    VB Project

    I ahve a VB projec that consists of make change of money paid and total cost. The textboxes represent the money paid and total cost, a button for the make change process, and a listbox that shows what change should be giving. The listbox should show exactly how the change is broken down (i.e. fifty, twenties, tens, fives, etc.). If a five is not necessaru for change then is should not be int he list box, only when a five is necessary should it be shown. For example 200 money paid and the total cost is 120. The listbox shoulf say 1 Fifty, 1 Twentie(s), 1 Ten(s). All the other money values should not be shown at this time. I have no idea how to write the code to get the list box to display the answer, omit when a value is not needed in the change, how the list box connects to the buttton when I click on the "make change" button, or how you figure out text box 1 subtracted by text box 2. Any suggestions.

    Thank you,
    Gruvon
  • willakawill
    Top Contributor
    • Oct 2006
    • 1646

    #2
    Originally posted by gruvon69
    I ahve a VB projec that consists of make change of money paid and total cost. The textboxes represent the money paid and total cost, a button for the make change process, and a listbox that shows what change should be giving. The listbox should show exactly how the change is broken down (i.e. fifty, twenties, tens, fives, etc.). If a five is not necessaru for change then is should not be int he list box, only when a five is necessary should it be shown. For example 200 money paid and the total cost is 120. The listbox shoulf say 1 Fifty, 1 Twentie(s), 1 Ten(s). All the other money values should not be shown at this time. I have no idea how to write the code to get the list box to display the answer, omit when a value is not needed in the change, how the list box connects to the buttton when I click on the "make change" button, or how you figure out text box 1 subtracted by text box 2. Any suggestions.

    Thank you,
    Gruvon
    If you look here you can alter the code to fit your project

    Comment

    Working...