Video Lectures‎ > ‎

Math Operations and Textbox

This is the tutorial to Visual Basic 2010 how to use text-boxes and perform mathematical operations
This is the tutorial to Visual Basic 2010 how to use text-boxes and perform mathematical operations
The Video is in English and Urdu!
Same coding can run Visual Basic 2008
1. Open Visual Basic 2010 or 2008
2. Click new Project in file menu
3. Draw 2 textboxes and s button on form n double click on it
4. Enter coding
Public Class Form1
    Dim a As Integer
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        a = Val(TextBox1.Text) + Val(TextBox2.Text)
        MsgBox(a)
    End Sub
End Class
5. Run your Program
Comments