Results 1 to 8 of 8

Thread: [RESOLVED] How to add a value in same text box ?

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2012
    Posts
    26

    Resolved [RESOLVED] How to add a value in same text box ?

    i made two text boxes and a button in windows form application VS2010

    in that i enter a value ex: "24" in first text box

    when i press the button the ouput should come as 2+4 ="6" i.e 6 should come as out put in second text box how can i do that .please tell me the logic in code format . i tried this but stuck in implementing logic
    Code:
    Public Class Form1
    
    
        Private Sub KryptonButton2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles KryptonButton2.Click
    
    Dim ftn as integer
    dim stn as integer
    ftn = TextBox1.Text
    stn= val(ftn)
    stn = TextBox2.Text
      End Sub
    End Class
    please tell me the code !!!!
    Last edited by charuwaka; Dec 27th, 2012 at 09:15 AM.

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