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


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

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

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

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

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

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

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

Create A Database Application That Will Keep Records Of All Cash Transactions

Aug 2, 2010

I am trying to create a database application that will keep records of all cash transactions. how to print a cash receipt to give it to the customer?

View 2 Replies

2005 Crsytal Report - Create A Receipt For Every Cash Or Credit Transaction Of A Client

Jun 2, 2011

I got a big problem in using crystal report in vb.net 2005. im creating a sales and inventory system for softdrinks dealer. so i need to create a receipt for every cash or credit transaction of a client. but i dont have any idea how to use crystal report. how can i make a receipt on crystal report in vb.net 2005.

View 4 Replies

Create A COM DLL And Register

Jun 20, 2011

I Need to create a COM DLL and Register it using RegServer.Exe. After that I want to use that Control in any Scripting language like JavaScript, VBScript etc.. vis CreateObject and want to use the functions.. I want to create a dll like oleDB.dll or office components like Excel.Application, Word.Application...

[Code]...

View 1 Replies

Create Fancy Register Card GUI?

Dec 27, 2010

I want to create a guy with register cards for my menus.

As you can see in the example, each menu button is an icon with label and marked when selected.

1. How do I do this in Visual Studio 2010?

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

Create A Database Administrator Form To Register, Remove, Edit User Accounts In Visual Basic 2010?

May 11, 2011

create admin form to register, Remove, Edit user accounts in the system connected to Microsoft SQL Server R2 2008 or access database ? any toturial videos or instructuions step by step ?

View 3 Replies

Error - Setup Was Unable To Create A DCOM User Account In Order To Register 'C:programs FilesMicrosoft Visual StudioCommonToolsVS-Ent98Vanalyzrvalec.exe

Sep 10, 2009

When i try to install the Visual Studio 6.0 in Vista , am getting following error message,"setup was unable to create a DCOM user account in order to register 'C:programs FilesMicrosoft Visual StudioCommonToolsVS-Ent98Vanalyzrvalec.exe"

View 1 Replies

Create A (REALLY) Simple Web Server

May 27, 2009

I'm wondering, is it possible to create a (REALLY) simple web server in VB.NET? I may be wrong, but don't you essentially just need a listener for port 80 and a way to send pages to the client?

View 3 Replies

Create A Program With A Simple Gui?

Jan 4, 2012

Im trying to create a program with a simple gui that enables me to search for and select parent folders containing child folders containing multiple files and then validate those files based off of constants i set per child folder and file.

Example

User selects Parent FolderX
Parent FolderX > (ChildFolder1 ( Constant for ChildFolder1 says open file 4 ) > File 4

Compare multiple strings of text in a specific order based off of file name to constants i have set for that named file Then continue to ChildFolder2 ( Constant for ChildFolder2 says open file 16 ) > File 16 Compare multiple strings of text in a specific order based off of file name to constants i have set for that named file If there is any constants not read in one of the files after all have been checked, return msgbox with a notification and write .txt log with child folder and file names to specified directory?

View 4 Replies

Create A Simple CleverBot?

Mar 2, 2011

My professor said that if I create a cleverbot she will give me a high grade but the problem is I only have 2 weeks to do it. Please help me, i can connect vb 2008 to ms access ( i think i will need it)[code]...

View 39 Replies

Create A Simple Database On Fly?

Oct 31, 2009

I just want to be able to click on a commandbutton, menu_item, or maybe even a wizard at program install time, to make the database from scratch.

1) I do not care what type of database it is it is as long as it will run on any pc machine without having other programs installed except the one im creating.

2) I do not want to use access or the designers to create the database either

[code]...

View 7 Replies

Create A Simple Log Command?

Apr 22, 2012

I apologize if this question is something of the most simple, but I'm not even sure what terms I should use to search. What I'm trying to do is create a 'Sub' that will do something when I call it in another Sub, however I am unsure in how I would pass variables from one another. Here is what I have;

Private Sub Log
LogBox.AppendText(logstuff & vbNewLine)
End Sub

[code].....

View 2 Replies

Create A Simple Web Browser?

Sep 23, 2007

I am a beginer and I am trying to create a simple web browser using Visual Basic 2005 Express Edition.

Public Class Form2
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

[Code].....

As you can see from the above code I do not have forward, back and stop buttons. Thats because I do not need them. The browser will be configured to go to a certain website directly.

What I need is this browser should be configured to use specific JRE. That is the browser should use ONLY JRE 1.3.1 or ONLY JRE 1.4.2

View 7 Replies

C# - How To Create A Simple Glass Effect

Jul 12, 2010

I am currently painting a light blue, partly transparent overlay over owner-drawn objects to indicate certain state. It's OK but I thought that it would be even nicer if I could at some sort of glass effect to further establish the idea that the particular object has "something" overlaid over the top of it.

I thought that some glass streaks, for example, in addition to the blue transparency would lend a nice effect.I've Googled around for GDI+ (and others) algorithms to do simple things painting like this but have come up empty. I prefer .NET but can figure out the painting from pseudo-code on up.

Sorry, shoul've also specified that I need to target WinXP and using .NET version 2.0 - So unable to use WPF or Vista/Win7 goodies.

View 3 Replies

Create A Simple Application Using Codedom?

Dec 18, 2010

today I attempted to create a simple application using codedom.Basically I want to be able to compile a messagebox with the custom text entered in the builder.

This is what I have so far.

ICompiler.vb Class "Codedom" Class and in my main form "the builder I have this

[Code]...

If no one could help me perhaps does anyone have a simple source example?

View 1 Replies

Create A Simple Application Which Has 2 Forms?

Apr 20, 2010

I wanted to create a simple application which has 2 forms.the first one contains a combobox which has the list of names of reports.now i select this report and click on next which takes me to the 2nd form.there i have to enter 4 values(or parameters)like the date from and date to and other 2 values...using these 5 values i want to retrieve the respective reports from the archive folder based on these parameters...i just know how to select and move to the second form from the first..how do i achieve my goal of retrieving the pdf files.i want the result in a table form which will have column names of the parameters i pass and the last column with the report pdfs.

View 6 Replies

Create A Simple Calculator Using Only 1 Textbox?

Mar 29, 2011

I want to create a simple calculator using only 1 textbox , 1 button and 1 label, but I don't know how to create the code.

for example if i write : 53+35-33=

and if i press the button it will calculate and the answer the label will show the answer (55).

View 3 Replies

Create A Simple Clock With Different Time Than PC?

Oct 25, 2008

i want to create a simple clock with different time than PC.I mean to say that application will as a user to input time in HH:MM:SS format and after it is submitted clock start from that time.

View 2 Replies

Create A Simple Controllable 3d Cube?

Jun 3, 2010

how to create a simple controllable 3d cube? I think the code should go in the form.paint area, but i dont know what exactly to put..

View 2 Replies

Create A Simple Dotnetnuke Module Without DAL?

Jun 25, 2010

I want to create a new module in DNN (VB) ... that;

1. does not use DAL or DAL+

2. has only one view.ascx control

3. It has to be a compiled module

I do not need DB connectivity and any bells and whistles just one view control. I thought it would be simple but googling for a day now and it seems very complicated.

View 1 Replies







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