Results 1 to 2 of 2

Thread: Programming help needed!

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2004
    Location
    Visual Basic.NET 2005 Express Edition Beta
    Posts
    6

    Programming help needed!

    I have Visual Basic.NET 2005 Express Edition Beta1, and I need to make a program for my club at school, it is basically a calculator where there is 6 form boxes, where you can type a number in. Each form box gets multiplied by a number (see below)

    Form 1: 7
    Form 2: 5
    Form 3: 3
    Form 4: 1
    Form 5: 0
    Form 6: 10

    Then the final result would be displayed in a form box after a Calculate button is pressed (if would add up the final results from the box [the numbers from the boxes])

    Can anyone give me the source code for this, or just for one form box and the button code?

    I attached a picture of the program so you can better understand what I am saying.

    Any help is HUGELY appreciated by me and my club.

    I can also send the .vbproj and all other files associated with this program by private message.

    Thanks,

    Snowthrower
    Attached Images Attached Images  

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974
    I'm not sure if the syntax is right (I use VB 6 rather than .Net), but this is the kind of thing you need (in the click event of the "Calulate.." button:
    VB Code:
    1. txtScore.Text = (txtPerfect.Text * 7) + (txtOK.Text * 10) + (txtGreat.Text * 5) + (txtGood.Text * 3) + (txtAlmost.Text * 1) + (txtBoo.Text * 0)

    By the way, this would probably have got more/quicker replies if you had posted in the proper forum (under VB.Net questions)

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