Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Problem in opening Cash Drawer in VB.NET

Problem in opening Cash Drawer in VB.NET

Scheduled Pinned Locked Moved Visual Basic
csharpcomhelp
4 Posts 3 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    V Senthil
    wrote on last edited by
    #1

    Hi Friends, I need the code to open cash drawer either it will be connected in COM or Serial Port. Below this code is working VB 6.0. Open "LPT1" For Output As #1 Print #1, Chr$(27); Chr$(112); Chr$(0) Close #1 I need the code in VB.NET. Any can change the code to .NET. Thank's in advance, Senthil V.

    C 1 Reply Last reply
    0
    • V V Senthil

      Hi Friends, I need the code to open cash drawer either it will be connected in COM or Serial Port. Below this code is working VB 6.0. Open "LPT1" For Output As #1 Print #1, Chr$(27); Chr$(112); Chr$(0) Close #1 I need the code in VB.NET. Any can change the code to .NET. Thank's in advance, Senthil V.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I believe there is a serial port class in .NET 2.0. But it's new there, so are you using 2.0 or not ?

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      V 1 Reply Last reply
      0
      • C Christian Graus

        I believe there is a serial port class in .NET 2.0. But it's new there, so are you using 2.0 or not ?

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

        V Offline
        V Offline
        V Senthil
        wrote on last edited by
        #3

        No we are using .NET 1.0.

        D 1 Reply Last reply
        0
        • V V Senthil

          No we are using .NET 1.0.

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          Which port is this drawer connected to? In your original post, you said you wanted the serial port, but yet the code you poasted says its on the Parallel port. There will be a HUGE difference in the two procedures used to send raw data to the drawer based on which port it's connected to.

          Dave Kreskowiak Microsoft MVP - Visual Basic

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups