CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2009
    Posts
    1

    C# basic problem

    hi

    I just started c# and want to try something.

    I got like 5 buttons
    1 button with 1 dollar
    1 button with 2 dollar
    1 button with 5 dollar

    and if i press the button 1 dollar, i want that the label
    says you got 1 dollar, (so far i can do that )
    But if i press the 2 dollar, that the label says,
    so far you got 3 dollar (1 dollar + 2 dollar)
    and if i press 2 dollar again i get 5 dollar and so on...

    Ty

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: C# basic problem

    Please post your code and use code tags (i.e. [ CODE]your formatted code here[/ CODE]).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured