CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2000
    Posts
    19

    How to Find % of a Number

    I Have 3 text boxes the first text box the user will put in the % of the number the second text box will be the number to get the % from and the third will be answeer of text 1 and text 2.

    What I need to know is how to do % of a number in
    Visual Basic

    Thanks in Advance
    Donny S.


  2. #2
    Join Date
    Jan 2000
    Location
    Saskatchewan, Canada
    Posts
    595

    Re: How to Find % of a Number

    text3 = text2 * (text1/100)


  3. #3
    Join Date
    Dec 1999
    Posts
    20

    Re: How to Find % of a Number

    how about
    text3.text = ( text2.text / text1.text ) * 100




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