|
-
Oct 15th, 2006, 12:08 PM
#1
Thread Starter
New Member
question
im doing a project for school and i cant figure this out...
Private Sub btnCalculate_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles btnCalculate.Click
Dim txtTotalSales As Single
Dim txtCommissionPer As Single
txtTotalSales = CSng(txtTotalSales)
txtCommissionPer = CSng(txtCommissionPer)
'Calculate Commission
txtTotal = txtTotalSales * txtCommissionPer
'Display Commission
txtTotal.Text = FormatCurrency(txtTotal)
End Sub
that txtTotalSales * txtCommissionPer is coming up with an error that says value of 'single' cannot be converted to 'system.windows.form.textbox'
any help would be Greatly apreciated
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|