Make A Cash Register Program That Uses An Inputbox?

May 7, 2012

I need to make a cash register program that uses an inputbox.

The outcome should be like this example[code]...

It should open a input box asking for the amount of each purchase and loop until all purchases have been entered

View 2 Replies


ADVERTISEMENT

Cash Register Program - Opening Drawer?

Feb 9, 2010

I'm trying to convert an ancient cash register program to .net. Conquered everything else, but I can't pop open the cash register. Its connected to COM1, you are supposed to send a "trigger" text down COM1 that will cause the register to open.

Here is the .net code.
MsgBox("Opening Drawer")
Dim port As System.IO.Ports.SerialPort
port = New System.IO.Ports.SerialPort("Com1")
port.PortName = "COM1"
port.BaudRate = 9600
[Code] .....

I get msgboxes "Signal Sent", "Done Pop Drawer". It just won't pop. It's an MS-Cash Drawer (EP125KC). Definitely connected to COM1, definitely has power. Chr(65) is the old code used to pop drawer and it works:
Open drawerComPort For Output Access Write As #1
Print #1, Chr$(65); "A";
Close #1
The above code worked successfully. The root problem was caused by a reversed power cord (negative was on the wrong side).

View 5 Replies

Subtraction - Program That Sims A Cash Register ?

Feb 17, 2009

I am writing a program that sims a cash register. Everything works fine except VB will not compute subtraction. If I put a replace - with + everything works. What could be the cause of this?

Here is part of the

'Convert input into number
isConverted = Double.TryParse(owedTextBox.Text, NumberStyles.Currency, NumberFormatInfo.CurrentInfo, owed)

[CODE]...

***********If owed is 10 and paid is 5, it returns 0, but if I change the - to either a + or *, it returns the expected value

View 3 Replies

Cash Register Program With Separate Forms For The Items And The Display Form?

Jan 15, 2011

I have this cash register program with separate forms for the items and the display form. The code works untill you press the button 2x. It says 5.5 + 5.5 = 11.5??? Can you fix this code?

CashReg.ListBox1.Items.Add("Item 1")
Dim cash As String
cash = (5.5)[code]....

View 3 Replies

Create A Simple Cash Register?

Nov 21, 2011

My assignment this week is to create a simple cash register. The kicker here is that I have to have an input box pop up to accept the data. I know I need to use a Do Loop here, but I' not sure what the proper condition should be. Hitting cancel on the input box or inputting nothing ought to terminate the loop.

Private Sub btnCheckout_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCheckout.Click
Static decPrice As Decimal
Static intCount As Integer
Static decSub As Decimal

[code]....

View 1 Replies

Math / Change Return For A Cash Register

Feb 6, 2011

Im getting mathematical errors. the part that I'm having problems with is, first, it doesn't add the tax to total the correct way. It adds it correctly if I put a dollar(1.00) but when I type one hundred dollars (100.00) it doesn't add the tax correctly. I am trying to compute and display the tax on the new subtotal. Second, it is not adding the correct change to the label in dollars, quarters, dimes, nickels, and cents. Third my arithmatic is not adding correctly when it has to do with the change due back. . Finally, forth I am also trying to do the following:

* add the total for this item to the order sub total and display the new subtotal.

* I have 2 clear buttons, one clears item, the other clears order the clear order button shoule clear out the change due and bordered label and have the subtotal reset to $0.00. The clear item should just clear out the quantity, unit price, and item total textbox.

* When the user has entered the amount of money tendered by the customer and click calc order button, the program should use the amount tendered and the current order total to compute and display the change due to the customer.

* the change due should be displayed in currency format in the readonly label, and should be displayed in terms of the number of dollars and coins due in the bordered label. [code]

View 3 Replies

Develop Cash Register Features In Visual Basic 2010

Jan 27, 2012

how to develop a cash register app. in visual basic 2010.

View 3 Replies

Reate A Socket Class In Project To Send Data To Ecr (electronic Cash Register)?

Jan 9, 2012

I am trying to create a socket class in my project to send data to ecr (electronic cash register).Ecr comes with software that listens for commands on port 3535. Command are in forms of XML Files. It has only one catch, I must close the connection on socket, so the ecr would know when to process the command and respond. Since I only send one command at a time,I need the simplest solution I can get.

How it works:I create the socket and connect it to 192.168.1.67:3535 I start

client.BeginReceive

Then I send the command with

client.BeginSend

And I do a

client.Disconnect(True)

so I can get response from ECR.And in 8 of 10 times it works just fine. The problem is this few times it doesn't work.At that time I cant receive anything because it reports that the client is not connected in ReceiveCallback but it still manages to send the data to ECR just fine. The bill comes out on the ECR, but I get no answer about what happened.

I call the class like this:

Dim dre As New HCPSocket
Result2 = dre.Otkucaj(Command1, "192.168.1.67")
Debug.Print(Result2)
dre = Nothing

End the class looks like this:

Imports System
Imports System.Net
Imports System.Net.Sockets

[code]....

View 1 Replies

Forms :: Auto-Detect BarCode Scan Entry OR Manual Entry - Cash Register?

Sep 8, 2009

i am pulling together a cash register that will allow both bar code product entry and manual key entry.imagine if you have a tin of beans in front of you, in a small corner shop they would probably type "47" and then hit "Produce". Fairly straight forward as I have the button Produce to act upon my code and update my salestrans.mdb but,if you scan the bar code I want the same form to handle both 'real' actions, (i assume that keyboard emulation barcode scanner includes "ENTER" after providing 13 digits)....

Q. in perhaps a long winded way i want to know how to kick off an event based on the "ENTER" key being activiated by the barcode scanner)?i do not want to have to hit any buttons if i am scanning bar codes.

View 9 Replies

Make A Register Program That Stores Data In Online Database?

Jun 9, 2012

My code is the following[code]....

I don't have any errors on the password orr the database!!!I only have errors on the "sqlquary"

View 2 Replies

Make A POS Or Point Of Sale With Cash Tendered?

Mar 30, 2010

bcoz i have an assignment regarding in POS or point of sale....

View 9 Replies

Make InputBox Text UseSystemPassword?

Aug 11, 2010

Dim Password As String = InputBox("Confirm Password")[code]...

View 1 Replies

FLAG And InputBox - Display An InputBox For Each Word?

Jun 22, 2010

I have an assignment that asks me to:

1. create a button
2. when that button is clicked, an inputBox will appear to ask the user how many words they will enter.
3. then display an inputBox for each word.

For example, when the first inputBox appears, I enter "3" (meaning that I will enter 3 words).Then there should be 3 more inputBox (each inputBox allows me to enter only 1 word)After I enter the third word, there will be no more inputBox.How can we FLAG (stop) the inputBox, or let the inputBox know when to stop showing up?

View 1 Replies

Register Dll In Gac In Program?

Mar 22, 2011

I want to register a .dll in gac.what is process to register a .dll in vb.net through programming.

i want to acess the .dll in my application without adding reference.

View 11 Replies

Make A Login And Register Form?

Sep 5, 2011

I want to make a login and register form.

I want to create a database (I have not done that) and People can register a free account. They must write Username / Password and an E-mail.

What should I do to the database ? I need a host ?

View 2 Replies

Download Visual Studio And The 30 Day Period To Register Expired And I Cant Start It To Register?

Feb 25, 2010

I downloaded visual studio and the 30 day period to register expired and i cant start it to register.i uninstalled it and reinstalled it and it still wont let me start it up to register it. what can i do to get the key?

View 3 Replies

Register An Automation Server In The ROT (Runtime Object Table) Using IRunningObjectTable.Register?

Feb 1, 2007

Does anyone have an example of how to register an automation server in the ROT (Runtime Object Table) using IRunningObjectTable.Register and how to revoke it using IRunningObjectTable.Revoke?

View 1 Replies

How To Register Hotkeys And Find If In Use By Other Program

Apr 28, 2010

I would like to register a hotkeys/shortcut keys (e.g. Ctrl + Alt + A) and I would like to find out if other program is using it.

View 2 Replies

Register A Name For A Program In The Windows Run Dialog?

Aug 6, 2009

How do you register a name for a program in the windows run dialog? For instance typing in "notepad" and pressing enter runs notpad.exe "photoshop" in my case runs Photoshop CS3 I'm using vb2005.net.

View 5 Replies

Register Script Using Program Code?

Feb 15, 2012

I am using this [code]...

and do I need to call it only in Page_Load or can do that in button click event ??

View 1 Replies

Make Application That Fill Website Register Form?

Nov 15, 2010

I am new in programming.i want to learn programming as i can so I want to Application that can fill website registration form. my target website i

View 6 Replies

How To Register Program As The Default Email Handler

Jun 27, 2009

point in the direction of figuring out how to register my program as the default email handler, and then how to make the program know where it is supposed to be sending email from the mailto: link etc.

View 7 Replies

Runs Program And Seems To Skip Whole Register Key Section

Mar 21, 2012

I've created my program, its all fine and dandy, only problem is i want it to start when windows does.i have read a few threads and adapted some codes.. i have this [code] now it wont let me debug, presumably because of admin rights. although when i navigate to myprogram's .exe and run as admin it runs the program and seems to skip the the whole reg key section .

View 6 Replies

InputBox - Code To "read" Commands That Are Placed From The Inputbox?

Mar 9, 2011

Quick question on the InputBox. I am just learning this, what is the code to "read" commands that are placed from the Inputbox? I can do this in the command line: System.Console.Writeline(), System.console.Readline()

I just would like to know how read the line from the inputbox. Also when I debug my script do I -always- need to have the command prompt in the background?

View 1 Replies

InputBox Function - Program - Allow User To Input 5 Payrolls For Store 1, Store 2, And Store 3

Mar 22, 2012

I am coding a program that will allow the user to input 5 payrolls for Store 1, Store 2, and Store 3. The total of the 5 payrolls are then added together and shown in the respective Store's labels. A total label is also there to add up all the totals into one number. The numbers in the label must be in currency form. My problem is the numbers don't add correctly when I hit calculate. The first two numbers add together, but then after that the number just seems to subtract a random amount.

So far I have this --

Public Class Form1

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

[CODE[...

View 14 Replies

C# - If Not Check Then Add To Cash

Sep 9, 2011

Basically, the code checks if the amount being entered is check. If it is check, insert the check value into chckval. If it is cash insert the cash value into cashval. So far, it is half working. It inserts the check into the check fieldname and inserts 0 into cash fieldname. What is not working is inserting cash into cash fieldname if the money is cash. It inserts the cash into cash fieldname as it should but it also inserts the same amount into check fieldname. This is not good. If it is cash and it is inserted into cash fieldname, I want check value to be 0.

Here is the latest code.
For x = 1 To 5 Step 1
dedval = Gridview1.FindControl("ded" & CStr(x))
chckval = Gridview1.FindControl("chck" & CStr(x))
chcknumval = Gridview1.FindControl("chcknum" & CStr(x))
checkboxval = Gridview1.FindControl("chckBox" & CStr(x))
[Code] .....

I think there is some issue with the
IF chckval.Text <> "" And Not checkboxval.Checked Then
statement

View 1 Replies

Converting To Cash Using Str.format?

Apr 5, 2009

I still have troubles understanding what the deal is with the whole String.Format("{0:C}" thing. How would I implement it into this code and how exactly does it work?

Public Class Form1
Private Sub computedeposit(byval dblrate As Decimal, ByVal dblfutureval As double, ByVal intyears As integer, byref dbldeposit as double)
dblrate = dblrate / 100
dbldeposit = dblfutureval / ((1 + dblrate) ^ intyears)

[code].....

View 13 Replies

Open USB Cash Drawer?

Dec 4, 2011

I have a USB cash drawer that acts as a com port (lets assume com2)

any ideas on how I can open it? there is not really any documentation with it.

View 8 Replies

Check Whether Or Not The Cash Drawer Is Closed

Dec 16, 2009

I am still working on a POS application in VB.Net 2003. What I need to do is check the state of the cash drawer. I want to make sure the drawer is closed before a cashier is allowed to move on to the next sale. The cash drawer I am using is a MMF ECD200 (not sure if this will make a difference). Here is the code I am using to open the drawer:

[Code]...

View 12 Replies

Cash Bill Print For Sales Receipt?

Jan 14, 2010

I want to try to make a program for the Bill Print.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved