- Oct 14, 2004
- 1,887
- 0
- 0
Does anyone here know the ins and outs of the xcalc, I have a program setup and need it to do some simple calculations, two prices and a total cost.
Here's what I have so far,
Public Class MainForm
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub xExitButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles xExitButton.Click
Me.Close()
End Sub
Private Sub xClearButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles xClearButton.Click
'clears the contents of the all text boxes and total cost label
Me.xNameTextBox.Text = String.Empty
Me.xNumOfEnvelopesTextBox.Text = String.Empty
Me.xNumOfPagesTextBox.Text = String.Empty
Me.xTotalCostLabel.Text = String.Empty
'set focus to the name text box
Me.xNameTextBox.Focus()
End Sub
Private Sub xCalcButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles xCalcButton.Click
End Sub
End Class
Here's what I have so far,
Public Class MainForm
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub xExitButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles xExitButton.Click
Me.Close()
End Sub
Private Sub xClearButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles xClearButton.Click
'clears the contents of the all text boxes and total cost label
Me.xNameTextBox.Text = String.Empty
Me.xNumOfEnvelopesTextBox.Text = String.Empty
Me.xNumOfPagesTextBox.Text = String.Empty
Me.xTotalCostLabel.Text = String.Empty
'set focus to the name text box
Me.xNameTextBox.Focus()
End Sub
Private Sub xCalcButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles xCalcButton.Click
End Sub
End Class
