Click here to Skip to main content
13,055,629 members (53,010 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hi All!
I am using C#.Net 4.0. I need to open a Cash Drawer. I only know its model 'C4141'. Its a USB port cash drawer. Here is the code I am using to open the cash drawer.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.PointOfService;
using System.Windows.Forms;
namespace SAHIT.GSMS.WinUI
    class CashDrawerClass
          CashDrawer myCashDrawer;
        PosExplorer explorer;
        public CashDrawerClass(Form form)
                explorer = new PosExplorer();
                DeviceInfo ObjDevicesInfo = explorer.GetDevice("C4141");
                bool check = ObjDevicesInfo.IsDefault;
                myCashDrawer = (CashDrawer)explorer.CreateInstance(ObjDevicesInfo);
            catch (Exception ex)
                //throw ex;
        public void OpenCashDrawer()
            myCashDrawer.DeviceEnabled = true;
            myCashDrawer.DeviceEnabled = false;

But unfortunately its not working. Please help me. I am stuck on it very badly...
Posted 19-Dec-11 0:00am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Does it look like this?[^]
If so, follow the Contact US link and they should be able to help.
If not, follow the other 2,500 results Google gave:'.+Its+a+USB+port+cash+drawer[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 19 Dec 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100