Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Jan 25th, 2007, 12:47 PM   #1
boatn19
Newbie
 
Join Date: May 2005
Location: Charleston, SC
Posts: 11
Rep Power: 0 boatn19 is on a distinguished road
VB Idiot

I'm not asking for you to complete this help me out a bit...simple problem. I am trying to calculate sales x commission and show the commission rate with explicit on and well here it is and i am screwing up, can you tell me where to find the answer...

Option Explicit On
Option Strict On

Public Class MainForm

Private Sub xExitButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles xExitButton.Click
Me.Close()
End Sub

Private Sub xCalcButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles xCalcButton.Click
' calculates and displays a commission

Const xCommissionLabel As Decimal = 0.1D
Dim xsalestextbox As Integer
Dim xCommissionLabel As String

Integer.TryParse(Me.xSalesTextBox, xCommissionLabel)
xCommissionLabel = xsalestextbox * 10.0
Me.xCommissionLabel.Text = Convert.ToString(xsalestextbox)

End Sub

Private Sub MainForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

End Sub

Private Sub xCommissionLabel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles xCommissionLabel.Click

End Sub

Private Sub xSalesTextBox_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles xSalesTextBox.TextChanged

End Sub
End Class
boatn19 is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:20 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC