We're working in the book "Advanced Programming Using Visual Basic 2008.(Pg.34, Praying that someone has the book) Anyway, I suppose to create an payroll program, I have the layout done. What I having trouble with is the coding, I mean, how do I start? I know how to code the buttons and menus. But, I don't understand how to input the codes for the employees, or allow only #'s to be placed in the text box.The payroll, suppose to be able to calculate the employees Hours, Rate, and Pay. As you can tell I'm a complete noob with VB, just started using the program.
Im trying create a small payroll system using VB.Net windows form applications. The problem im currently facing is when im updating the datagridview. But my update doesnt work. IM using dataset and databinding source. I want to udpate the datagrid view and automatically update the database. [code]
Where can I see an example to print a formal (aligned) report with data that I have in an array[100,5]ypical example: a payroll report with the columns "NAME", "ADDRESS", NUMBER OF HOURS, SALAR PER HOUR", TOTAL SALARY
I think its better if i attach my files for you understand what i wanted to happen in my program.
We are now in our finals and for our project we need to make a program that shows connection of database(sql or access) and vb.net so dont mind if it has a problem in design or anything bcoz the objective of this project is to show what we've learn in our subject IT Programming 1 (vb.net)
I dont know what to do in this part of my program. what to do first? why is it attaching zip files is not allowed?
a. Level 1 - $10.00 b. Level 2 - $12.00 c. Level 3 - $14.00 d. Level 4 - $16.00 e. Benefit Deduction Rate - 0.10 f. Overtime Factor - 1.5
For ease of program maintenance, all of the above rates and factors must be stored in module level constants. All references to pay rates in the program must refer to the module level constants.
When the Calculate button is clicked:
a. The value in the Hours text box must be validated to insure that it is numeric value greater than zero.
1. If the value is not valid, a message box must appear as shown below and the user must be offered the option to continue processing or quit the program.
2. If the user chooses to continue processing, the focus must be set to the Hours text box.
3. If the user chooses to quit, the program must close immediately.
b. If the value is valid, the program must calculate and display the total pay in the Total Pay label.
1. The pay rate is determined by which Job Grade radio button is checked.
2. For hours less than or equal to 40, the total pay is the hours times the pay rate.
3. For hours greater than 40, the total pay is 40 hours times the pay rate plus the hours in excess of 40 hours times the pay rate times the Overtime Factor.
4. If the Full Time radio button is selected, the total pay must be reduced by the Benefit Deduction Rate.
5. The value displayed in the Total Pay label must be formatted with a dollar sign and with two decimal places.
6. The focus must be set to the Hours text box.
Why i get an error when i try to run this code
Code:
Also the message box, both yes and no close the program.....
You need to design and create a program that accepts input of employee name, employee type, and the number of hours worked each week for two weeks.
You must be able to select an employee type. An employee of type Trainee makes $10 per hour. An employee of type Regular makes $15 per hour. An employee of type Manager makes $20 per hour.
The program should calculate the employee pay for the week. The employee should receive 1 times the regular pay for any hours worked over the prescribed 40 hours in a week. The program should output the following information:
-The employees name without trailing or leading spaces
-Regular hours worked
-Regular pay
-Overtime hours worked
-Overtime pay
-Total pay
The Problem that i am having right now is "Displaying " the overtime hours on my "FORM VIEW" i mean i did the math right its just when i type (lblOverHrs.Text = CDec(CDec(OvrHrsWrkWeek1.Text) + CDec(txtOvrHrsWrkWeek2.Text))
Its says the "OvrHrsWrkWeek1 and 2" are not Declared which are..im not really sure where i went wrong..
how i can write a program to create a shortcut in the startup folder of a different program. So i have one program on my computer that should run at startup, i just need another program to create a shortcut to it, and then copy this shortcut into the startup folder.
Lets say I have a program that has a textbox and a button. I want the button to create another program that will show a messagebox, inside the messagebox will be the textbox from the 1st program. How would I do this?
I am trying to create an exe file through my program. Please do not get this mistaken for trying to create an exe file for my program. I know how to create an exe for my program. However, when I run my program I want the user to be able to select some files and then those files will get added to a list. Once they are done selecting files I want them to be able to create and exe file that will copy those files to whatever computer they run it on.
we are suposed to create a program that we like with certain peramiters, I have done as much however I have an error and I can not find a solution anywhere. We are, before you ask, able to seek help on this matter. Here is what I have:
How to create a database using sql in vb 2008. Creating a database as in make it a valid one. I'm actually trying to develop a program. I've got everything in mind it's just that the database that i'm lacking and i am wondering if there's any idea to create it inside vb.net.
p.s. I know how to link. I just need the information to create the database from the scratch using SQL.
I am trying to create a pairing program.to get a format like in the Image.Here is some of my code... I am goining wrong somewhere, and my loop is infinite or something...What am i doing wrong?
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim r1, r2 As Integer Dim MyValue, MyValue2 As String
when a user logs into their account on the laptop , Remote Desktop Connection automatically logs them into their account on the main computer. The problem is when it comes to logout, i need to create a vb program that will run in the background , so when the user disconnects from RDC ( which also closes RDC) it automatically logsoff the laptop. hope this makes sense.
You need to design and create a program that accepts input of employee name, employee type, and the number of hours worked each week for two weeks.You must be able to select an employee type. An employee of type Trainee makes $10 per hour. An employee of type Regular makes $15 per hour. An employee of type Manager makes $20 per hour.The program should calculate the employee�s pay for the week. The employee should receive 1 � times the regular pay for any hours worked over the prescribed 40 hours in a week. The program should output the following information:
Option Explicit On Public Class Form1 Private Sub GroupBox2_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs)
I'm new in development in vb.net IDE, and I need your advises on how to create multi form in one screen like a project properties screen in VB2008 IDE, thus when you you go to Menu Project -> Project Properties... you can see that screen is divided into two panes the left one for options to choose and the right one for configuration and preferences.
I need to know how to achive this and how to create similar to that thus if you choose any button from left the form content changes at right (ok is this single form and all controls were set to invisible /visible or is it muliform programming.
I have another question : how can I change the Left pane with Treeview control and choose my option from there.
I'm looking for How to build object for use in my program. Example: I want to button my style and add it to toolbox and I can use it in every form and every project.
I am working on program in vb2008 and facing problem in making a PAYROLL SYSTEM.. well, I've done some of its parts and functions but the main part of it is still unsolved -- the computation of tax!! our boss want that when you input a basic monthly salary, the semisalary will be computed.. minus the sss, pag-ibig and philhealth.. then the tax will be computed but also depending on the number of dependents the employee have...
Code: Private Sub semiSalary_click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles semiSalary.Click If basicSalary.Text = "" Then MsgBox("Please enter a salary.", MsgBoxStyle.Exclamation, "Invalid") Else Dim result2 As Double [Code] .....
What I've done is that I'm trying to display those values when the the textbox corresponding to it was clicked. We get each value in our database stored on textboxes from the formtables of sss & philhealth. Attached image(s)
i have sql 2005 and i want to develop a small program that can access the database and amend a few rows of data. in sql database, i have 1 table and it consist of 3 columns = datetime, type & price. below is example:
I want to create an array of constant variables for my program. But from everything I read about arrays they are handled by a number. I want to be able to pass back a variable that will hold the name of the constant as well as the value. How would you go about do that.I want to when I type the variable to have the constant name show up as I am typing.
I'm trying to create a program which accepts a letter of the alphabet. For each letter a corresponding word beginning with that letter should be output, e.g., �a� or �A� input would give Alpha as the output, �b� or �B� would give Bravo and so on to �z� or �Z� giving Zulu.So if the user enters: "abc" for example, what should happen is a list on the right of the window appears with the words starting with those letters when the user presses calculate.I don't have any code apart form the basics below.
Public Class Form1 Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged End Sub
What code to use in a payroll calculator I am making. The requirements are 1. Name of employee. 2. number of hours worked 3. pay rate 4. percentage of state tax. 5. percentage of federal tax. 6. percentage of FICA tax. How I would go about this.
I'm about to start a new project, its a Payroll System, I'll be using VS 2008 and my dbase is MS SQL Server 2k5.I just want have some tips for this kind of project.
I wanted to create a simple Visual Basic 2008 program that can log me into my email with a click of a button...what would a the code for the button look like?
I am attempting to modify the payroll application below using an independent sub procedure rather than a Function procedure I'm not sure why things are not working after I managed to get the thing to work with the Fwt function. It's got to be something minor that I'm overloking. I get the correct amount for "gross pay and "FICA", but get "0.00" for FWT (it should be 35.78) and I get 369.40 for Net pay (should be 333.62)' This is the "CalcFWT Function" version
Option Explicit On Option Strict On Public Class MainForm