.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

SIMPLE AND COMPOUND INTEREST

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

SIMPLE AND COMPOUND INTEREST
 

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
                                   System.EventArgs) Handles Button1.Click
        TextBox4.Text = Val(TextBox1.Text * TextBox2.Text
                                          * TextBox3.Text) / 100
        TextBox5.Text = Val(TextBox1.Text * Math.Pow
                               ((1 + TextBox3.Text / 100), TextBox2.Text))
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
                                  System.EventArgs) Handles Button2.Click
        TextBox1.Clear()
        TextBox2.Clear()
        TextBox3.Clear()
        TextBox4.Clear()
        TextBox5.Clear()
    End Sub

    Private Sub GroupBox1_Enter(ByVal sender As
    System.Object, ByVal e As System.EventArgs) Handles GroupBox1.Enter

    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