Welcome to Dream.In.Code
Become a VB Expert!

Join 149,478 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,726 people online right now. Registration is fast and FREE... Join Now!




Pay Roll program

 
Reply to this topicStart new topic

Pay Roll program, this is a Pay Roll program. Im beginner with VB so I need a lil help

vafla
26 Apr, 2007 - 11:30 AM
Post #1

New D.I.C Head
*

Joined: 23 Apr, 2007
Posts: 2


My Contributions
CODE


    Private Sub calcButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles calcButton.Click


        Dim taxExemption As Double
        Dim typeOfPay As String
        Dim grossPay As Double
        Dim federalTax As Double
        Dim stateTax As Double
        Dim socialSecTax As Double
        Dim netPay As Double
        Dim deduction As Double
        'Grand Total variables
        Dim grandTotalGrossPay As Double
        Dim grandTotalFederalTax As Double
        Dim grandTotalStateTax As Double
        Dim grandTotalSocialSecTax As Double
        Dim grandTotalNetPay As Double
        Dim numberOfEmployee As Integer


        Dim isConverted As Boolean

        '  ==>I would like to check the nameTextBox if letters are entered

        'Tax exemption check
        isConverted = Double.TryParse(taxExemptionTextBox.Text, taxExemption)
        If isConverted = True Then

            'type of pay selection check
          
            '==> On the form I have name text box, tax exemption text box and type of pay combo box. I would like the user to enter this information and then loop for more employess with InputBox. till the user hit cancel. Can someone show me just the loop , the do... loop statement





        Else
            MessageBox.Show("Please re-enter tax exemption as number.", "Payroll processing program", _
                MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
        End If









    End Sub

User is offlineProfile CardPM
+Quote Post

Amadeus
RE: Pay Roll Program
26 Apr, 2007 - 11:52 AM
Post #2

g++ -o drink whiskey.cpp
Group Icon

Joined: 12 Jul, 2002
Posts: 12,348



Thanked: 51 times
Dream Kudos: 25
My Contributions
Can you specify the problem you're encountering, along with any error messages that are being generated? You've written some explanations in the code, have you tried to write this functionality?
User is online!Profile CardPM
+Quote Post

vafla
RE: Pay Roll Program
26 Apr, 2007 - 12:04 PM
Post #3

New D.I.C Head
*

Joined: 23 Apr, 2007
Posts: 2


My Contributions
Im not sure how to do for the first employee (the name, tax exemption and the pay code for the first employee in on the form) and then the information for every next employee need to be entered in inputboxes. So Im not sure about the loop
User is offlineProfile CardPM
+Quote Post

melonchollie540
RE: Pay Roll Program
26 Apr, 2007 - 10:09 PM
Post #4

New D.I.C Head
*

Joined: 6 Feb, 2007
Posts: 29


My Contributions
You can do a For...Next Loop that Opens up Input boxes that take in different input for different things.




User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 03:18PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month