I have to make a soda machine software. I'm very new to programming and I'm trying to make this thing work. I have buttons for Dollar note, quarters, dime, nickel. And what i want is the user to click on it and show the incremented amount in textbox. I'm just so frustrated because I simple don't know how to make it work. i tried ++dollarAmount ad everything but no success.
Im putting the code to form1.cs and I've also attached the entire zip file if you want to take a look at it.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace VendingMachine
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
txtboxInstructions.Text = "Please click on the amount that you would like to enter.";
}
private void btnClear_Click(object sender, EventArgs e)
{
txtBoxAmount.Text = "";
txtBoxSelection.Text = "";
}
}
}
Felipe RamosPosted Feb 23, 2011, 6:59 AM
Felipe RamosPosted Feb 23, 2011, 6:36 PM
dhru patelPosted Feb 23, 2011, 4:59 PM
dhru patelPosted Feb 22, 2011, 6:03 PM
Jaganathan BantheswaranPosted Feb 22, 2011, 3:07 PM
I had a look at your project. Good design..
But i cant understand the logic. On click of dollar button what value should be increased?.
What is the use of calculator-like buttons and Enter,Clear button. Can say clearly..
And one more thing while uploading any project into site please delete the obj & bin folders. because it increases the size if the zip file. in your case the zip file size is 17 MB. but if you delete the bin&obj folder it will be 20 - 50 KB only.
Thanks.
Please Make this as ANSWER if you feel i answered your question.