+ Reply to Thread
Page 2 of 2
FirstFirst 1 2
Results 11 to 14 of 14

Thread: VB

  1. #11
    Super Moderator WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther's Avatar
    Join Date
    Jul 2006
    Age
    36
    Posts
    11,689
    Blog Entries
    57

    Re: VB

    If you attach a screen-shot of the form, we will at least know what data you are collecting.
    CodeCall Blog | CodeCall Wiki | Shareware
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  2. #12
    Newbie mosgba is an unknown quantity at this point
    Join Date
    Nov 2008
    Posts
    15

    Re: VB

    this is exactly what i want ot do

    Write a Visual Basic program that allows users to enter the price of an item before tax (net value) and displays the price of the item after tax (gross value). Use the constant to define the VAT, which is 17.5, and use a variable to store the calculated gross price.

  3. #13
    Administrator Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan's Avatar
    Join Date
    Nov 2005
    Location
    Hendersonville, NC
    Posts
    24,556
    Blog Entries
    97

    Re: VB

    You will need to make an event when your "calculate" button is clicked which will take the text value form textbox1 and multiply it by 0.175. Take that value and add it from the original value. Display this value in textbox2 or label2 or whatever you have created.

  4. #14
    Xav
    Xav is offline
    Code Slinger Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav's Avatar
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,210
    Blog Entries
    13

    Re: VB

    Whoopee. Time for my daily fix of criticising Jordan.

    First of all - good luck multiplying a text value by 0.175. You need to convert it to a float first (float.TryParse() for the boolean test, float.Parse() for the actual data).

    Secondly - why bother adding the value onto the original value? Just multiply by 1.175 instead and bang, you have your value.

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

+ Reply to Thread
Page 2 of 2
FirstFirst 1 2

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Considering VB
    By AcidDrive in forum Visual Basic Programming
    Replies: 6
    Last Post: 11-11-2009, 06:52 PM
  2. Replies: 0
    Last Post: 09-29-2008, 05:17 PM
  3. VB vs VB.Net
    By Patrick in forum Visual Basic Programming
    Replies: 2
    Last Post: 10-14-2007, 11:58 AM
  4. VB.Net & VB 6.0 Syntax's
    By travy92 in forum Visual Basic Programming
    Replies: 10
    Last Post: 09-20-2007, 04:34 PM
  5. VB 6.0: Tutorial, Explaining the VB 6.0 GUI
    By TcM in forum VB Tutorials
    Replies: 1
    Last Post: 05-18-2007, 10:25 AM

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

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