All I can come up with is "Arggggggggggggggggghhhhhhhhhhh!"
Below is my code.
Option Strict On Option Explicit On Public Class PowerForm Inherits System.Windows.Forms.Form Private Function Power() As Double Dim Sum As Double Dim Arg1 As Double Dim Arg2 As Double Arg1 = CInt(txtArg1.Text) Arg2 = CInt(txtArg2.Text) Sum = Arg1 ^ Arg2 Return (Sum) End Function Private Sub btnCall_Click(ByVal sender As Object, ByVal e As System.EventArgs) _ Handles btnCall.Click Dim Sum As Double Power() MsgBox(Sum) End Sub End Class
When I run the program, the MessageBox shows an answer of zero.
Can someone tell me what I am doing wrong?
Thanks...