Results 1 to 6 of 6

Thread: I need the third textbox to show the value of two textboxes

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2005
    Posts
    570

    I need the third textbox to show the value of two textboxes

    Hi,

    How can I get this please?

    I have two text boxes. And I need the third textbox to show the value of two textboxes (adding two text box value to a third textbox).

    Seema.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,335

    Re: I need the third textbox to show the value of two textboxes

    Moved to ClassicVb
    VB Code:
    1. Text3.Text = Val(Text1.Text) + Val(Text2.Text)

  3. #3
    Hyperactive Member
    Join Date
    May 2005
    Posts
    307

    Re: I need the third textbox to show the value of two textboxes

    text3.text = Val(text1.text + text2.text)

  4. #4
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,692

    Re: I need the third textbox to show the value of two textboxes

    Quote Originally Posted by whythetorment
    text3.text = Val(text1.text + text2.text)
    If text1.text = "12" and text2.text = "34", Val(text1.text + text2.text) = 1234.

  5. #5
    Hyperactive Member
    Join Date
    May 2005
    Posts
    307

    Re: I need the third textbox to show the value of two textboxes

    oh bugger ur right......what was i thinking

  6. #6
    Fanatic Member
    Join Date
    Aug 2005
    Location
    South Africa
    Posts
    760

    Re: I need the third textbox to show the value of two textboxes

    lol
    If I helped you out, please consider adding to my reputation!

    -- "The faulty interface lies between the chair and the keyboard" --

    VB6 Programs By Me:
    ** Dictionary, Thesaurus & Rhyme-Generator In One ** WMP Recent Files List Editor ** Pretty Impressive Clock ** Extract Firefox History **

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