.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Code Snippets >> Visual Studio >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

MARK STATEMENT

Posted By:SanthoshNathan       Posted Date: November 28, 2010    Points: 15    Category: Visual Studio    URL: http://www.dotnetspark.com  

MARK STATEMENT
 

Public Class Form1
    Dim a As Integer = 88
    Dim b As Integer = 92
    Dim c As Integer = 98

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
                             System.EventArgs) Handles Button1.Click
        TextBox3.Text = a
        TextBox4.Text = b
        TextBox5.Text = c

        TextBox6.Text = a + b + c
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e
                             As System.EventArgs) Handles Button2.Click
        TextBox7.Text = TextBox6.Text / 3
    End Sub

    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
                              System.EventArgs) Handles Button3.Click
        TextBox6.Clear()
        TextBox7.Clear()

    End Sub

   
End Class


     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend