Read data from a USB port using MSComm control

Posted on 2006-04-20
Last Modified: 2008-02-01
I have to rewrite a VB6 application which currently uses MSComm control to retrieve date form the comport1 serial port. I would like to know if the same comm control can be used to retrieve data from a USB port. If not, how to retrieve data using the USB port in VB code.
I am using a symbol technologies 2D barcode scanner.
Any comments, help etc is greatly appreciated.
Question by:Hima76
    1 Comment
    LVL 3

    Accepted Solution

    I have used scanners with VB6 and didn't have to use MSCOMM at all.  Newer scanners simulate keyboard strokes, you should be able to just set focus on a textbox and scan away.

    I looked up that scanner on the web and even their documentation says the same:

    Scan data directly into the field on the form:
    This is the simplest of all implementations. To scan a barcode all you have to do is place the cursor on a field in a form and scan the barcode. This process can be automated to include tabs and returns with our Code 39 and Code 128 barcode products - even in web browsers and custom operating systems. By using tabs and returns, a single barcode can enter data in one field, tab to another, enter more data and choose the default button (a return). Information about encoding tabs and returns into barcodes is available in our Code 39 FAQ and the Code 128 FAQ


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Suggested Solutions

    Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
    When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now