CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Courtneyyw

Search: Search took 0.02 seconds.

  1. Replies
    17
    Views
    16,399

    Re: button1_click help?

    Nothing will calculate. Does that mean nothing is connected? I have no idea how to connect them. I thought my first question in the thread would solve that problem.
  2. Replies
    17
    Views
    16,399

    Re: button1_click help?

    Arjay,

    That is an excellent point! I see your thought process here. I did try it, though, and no success. It's like no matter which code I try, when I click Calculate nothing happens.
  3. Replies
    17
    Views
    16,399

    Re: button1_click help?

    No, it's not working. :( So I think my other code has something to do with it.

    I'll post it. I hope it's not completely off. Lol. I'll be a little embarrassed.

    {
    public partial class Form1...
  4. Replies
    17
    Views
    16,399

    Re: button1_click help?

    double SubAmt = BevPrice + AppPrice + MainPrice + DesPrice ;
    lblSubAmt.Text = SubAmt.ToString();

    double TaxAmt= SubAmt * 0.07;
    lblTaxAmt.Text = TaxAmt.ToString();

    ...
  5. Replies
    17
    Views
    16,399

    Re: button1_click help?

    Thank you HanneS! I see exactly what you are saying about creating a new variable. I did that because when I typed SubAmt.Text = ....; , I always got an error message.

    Error 1 Cannot implicitly...
  6. Replies
    17
    Views
    16,399

    Re: button1_click help?

    I am using a label to show the amounts. I have a label that says Subtotal and a label next to it that is named SubAmt. That is why I set SubAmt = BevPrice + AppPrice + MainPrice + DesPrice; . I...
  7. Replies
    17
    Views
    16,399

    button1_click help?

    The Problem:

    A restaurant wants an application that calculates a table's bill. The application should display all the menu items ( shown below) in four ComboBoxes. Each ComboBox should contain a...
Results 1 to 7 of 8





Click Here to Expand Forum to Full Width

Featured