Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27193

How to add a value in same text box ?

$
0
0
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 !!!!

Viewing all articles
Browse latest Browse all 27193

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>