Deduct Lates In A Time Calculator?
Jun 18, 2012
i created a text box that will contains the number of days in a month so i will just devide the number of days into theirs monthly rate so a can get their daily rate then i created a seven text boxes for a single day. the first txtbox is for the AM IN 2nd is for OUT 3rd is for PM IN 4th is for OUT the 5th is for the result of total hour in the AM and 6th is for the result of total hour in the PM and the 7th is for the total of 5th and 6th textbox and another textbox that will contain the earning for that day but i can only that accurately if i can deduct their lates on their schedule. w/c is their daily is deducted 1.16 per minute of lates and under time. this is the code i used on how will i get their working hour
Dim d1 As DateTime
Dim d2 As DateTime
Dim ts11 As TimeSpan
[code]......
View 6 Replies
ADVERTISEMENT
May 17, 2012
how to deduct qty from data base i have used this sentex to deduct. cm1.CommandText = "update inventory set qty=qty- " & cust_gv.Rows(i).Cells(3).Value() & " where item_name='" & cust_gv.Rows(i).Cells(1).Value() & "'"
View 6 Replies
Jan 31, 2010
Trying to make a calculator. What this subroutine is intended to do is filter out the negative numbers before (accomplishes the task) and also increment the count, n=n+2 so a subtraction can occur (not adding to). Alone the program runs but in the whole it does not. After debugging n has not increased which means the inputs between fuse together to make one bigger number which is bad. For the input1 minus input2 to occur the num1lock must latch to get a valid answer (this does not happen).
Private Sub Button12_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button12.Click
'-subtract sign
j = 0
If n = 0 Then
[code]....
View 8 Replies
Nov 15, 2011
deducting from customers purchases. The fields look like this:
tblStocks:
Name Type Qty
Pencil 2 15
[code].....
View 10 Replies
Jun 6, 2011
i want to deduct some amount(i.e user input) from main loan taken by employee and remaining amount again come as balance loan amount and on nxt month again the some amount should deduct from balance loan amount.
my database is in ms-access and i use vb.net..
View 6 Replies
Sep 6, 2009
I have an ASP.NET application with a SQL Server back end. I am storing all my dates in UTC format and doing the appropriate conversions to the local time zone of the browser viewing it. One of the pages asks for a start date and end date (no times).
I am taking the start date and setting the time to 00:00:00 hours (midnight) and I'm taking the End time and adding a time of 23:59:59, so that the date range covers the whole day. Now what I'm trying to do is do a SQL query to do a search for records in this date range. The problem is, the data in SQL is in UTC time and the user is typing their dates and times in their local date and times. My quickest solution was to convert the date and time to UTC, then search the records. However, by doing this, I am to believe ASP.NET converts the given time and date to UTC based on the server time zone. How can I convert a date and time to UTC time based on the time zone of the user?
View 5 Replies
Jan 22, 2010
I have this:
If (TextBox1.TextLength > 16) Then Return
But I want to add a beep to how can I do it? I mean I can only Return and I want to use Beep() too.
View 6 Replies
Jan 29, 2009
I've made a simple calculator, everything works except for the adding (+) function. Such as 3 + 4 = 34 (which it doesn't). It takes it as a string, rather than a number.
Here's what I have so far:
CODE:
Again, the problem is the adding is not functioning.
View 1 Replies
Oct 11, 2009
I am doing a tutorial for a simple calculator. My question is how can I add code to make a botton that add my tax % to the total amount I have.
Option Explicit On
Public Class Form1
Dim firstnumber As Single
[Code]......
View 1 Replies
Dec 7, 2009
The comma/dot may appear only ones. How do I modify that within this code??
bpuntingedrukt as boolean
Private Sub VoegCijferToe(ByVal sCijfer)
If Len(lblDisplay.Text) > 15 Then Exit Sub
If sCijfer = "0" And lblDisplay.Text = "0," Then
[Code] .....
View 24 Replies
Jan 11, 2011
Okay, i have two questions i will merge into one.I am using Express, just in case its important
First of all, i am trying to create a calculator using Visual Basic, which will end up being a lot like the 'Calculator' application built into all Microsoft computers.
I am having trouble however, with adding more than one thing to a text box.
[Code]...
View 13 Replies
Jun 18, 2012
i have to finished a cacluator, all my code seems to be working apart from the equals button and i do not understand why..i've tried several different things such as a case too but nothing seems to work to get the equals button working. This is my code, no need for all the buttons they are the same and ive declared variables.
[Code]...
View 2 Replies
Mar 30, 2012
Sorry in advance. I emailed myself my coding since I don't have vb on my personal computer. Sooo, the format is going to be off. But my program allows the computer to generate a random date. The user has to guess what day of the week the random date lands on. I have written the whole code. It all works except when user checks his/her answer. The answer always comes up as incorrect. Here is the coding:
[code]...
View 5 Replies
Jul 13, 2009
I want Dosage Calculator in c#.net for my module completion.
View 2 Replies
Dec 17, 2009
I want to build a calculator, i want to learn vb.net myself so i contacted you.
View 2 Replies
Apr 3, 2009
how to code the calculator?
View 2 Replies
Jun 22, 2010
How can i design a calculator?
View 2 Replies
Nov 26, 2009
does anyone know what i need to do? if you do make a youtube video and post it in this post.
View 1 Replies
Mar 27, 2011
I need to do a programme that checks if the number a user enters is odd or even and then adds together all the odd numbers and all the even numbers seperately and displays the total in a label. My code just displays "0".
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim oddNumber As Integer
[code].....
View 1 Replies
May 22, 2010
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)
[code].....
View 3 Replies
Nov 14, 2009
VB.pdf (69.13K)Number of downloads: 72 VB.pdf (69.13K) Number of downloads: 72
View 1 Replies
Dec 7, 2011
So Im having trouble taking the code i have and being able to break it down into a tip class and a total class along with the main form. i did the whole code in on form and now im so confused on how to break it down.this is what i have! its alot because im using radio buttons.. on and im using visual
Option Strict On
Option Explicit On
Imports System.Convert
[code].....
View 3 Replies
Oct 26, 2011
I need a little help in programming a console calculator.I'll start by saying that VB is a new programming language for me. I started a class in school that uses VB to teach an introduction to computer logic and programming. It's not the first language i have learned, but it the first one that i have gotten in depth with in console apps.I have a basic set up of asking the user for the first number, then the operator, then the second number.I'm currently using a Select Case statement to start the calculation area of the program, a Do Until at the beginning of the Select Case for a repeat, then it proceeds to getting the numbers and operators.
I'm also wanting to get all the possible math operators that VB provides included.What i'm hoping for is to clean up my code and make it to where the program asks the user for the equation itself. Example.
Console.WriteLine("Enter the equation")
equation = Console.ReadKey()
View 15 Replies
Dec 2, 2010
i am creating a backspace key for a calculator. first of all a currency needs to be chosen by clicking a button, when for example the is clicked the text is entered into the texbox. But when i use the backspace it deletes here is my code..
Private Sub btn_pound_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_pound.Click
'Enable the keypad when the pound sign is clicked,Disable the curency buttons after'
pnl_numbers().Enabled = True[code]....
View 4 Replies
Jul 22, 2010
I am new to the MSDN forums and was wondering if you could kindly help me with a learning project.I have created a calculator with a simple addition function button and was wondering if the method I used to create it is efficient and how I may go about adding additional functions such as a minus function.Will my current code allow m to implement a minus, multiplication, or division function easily?How do I add a minus function and would adding a multiplication or division function? Also would can I use the same global variables to do this.[code]
View 1 Replies
Aug 11, 2009
I'm trying to build a scientific calculator with vb .net, except it is vista glass :-p
I basically want the user to be able to enter an equation like SQRT(5 * 6) / (2 ^ 4) and then I want vb to use system.math to solve it. If I write this in my code, vb is able to do it, so how could I do this at runtime.
View 4 Replies
Mar 20, 2006
how to build a simple calculator in VB; i got the interface with buttons and text box alredy and i figured out how to put more then one number using buttons alredy(Disp.Text = Disp.Text & 1) , Looking at the windows calc, how do you store the number u just entered into a text box and alowe user to enter another to performe calculations, what code should i use for equal button and etc.
View 10 Replies
Jan 11, 2011
I have built a small VB.NET Calculator but whenever I add, subtract or multiply by 0 the answer is always 0. Here is my code:
Spoiler
Option Explicit On
Public Class Calculator2
[Code]....
View 13 Replies
Jul 12, 2009
code for calculator using vb.net
View 2 Replies
Feb 15, 2011
calculator similar to the Standard Windows Calculator. Your calculator should perform the same operations as the standard calculator.
I JUST WANT TO KNOW HOW MAKE Context menus
- FOR THESE Memory buttons: MC, MR, MS, M+
View 3 Replies