Imar,
Thanks for the reply, i actually was able to get it resolved; however I am sure that I will need some more guidance in the the future. Below is the code that I am using for the button. By the way I like your book, I think that you have written it well. As I stated I am new to all programming except for a tiny amount of PHP and desk checking. I have learned a lot so far.
Code:
Protected Sub btnAdd_Click(sender As Object, e As System.EventArgs) Handles btnAdd.Click
Dim excalc As New CalculatorASS2()
Dim value1 As Integer = Convert.ToDouble(valueBox1.Text)
Dim value2 As Integer = Convert.ToDouble(valueBox2.Text)
Dim result As Integer = excalc.add(value1, value2)
Label5.Text = result
' this is my public class
Public Class CalculatorASS2
Public Function add(ByVal a As Double, ByVal b As Double) As Double
Return a + b
End Function
Public Function Subtract(ByVal a As Double, ByVal b As Double) As Double
Return a - b
End Function
Public Function Multipy(ByVal a As Double, ByVal b As Double) As Double
Return a * b
End Function
Public Function Divide(ByVal a As Double, ByVal b As Double) As Double
Return a / b
End Function
Public Function Exponent(ByVal a As Double, ByVal b As Double) As Double
Return a ^ b
End Function
End Class