Solved

How to control COM1 and COM2?

Posted on 1998-12-08
1
682 Views
Last Modified: 2008-02-26
How do I use VB to control COM1 and COM2?
0
Comment
Question by:tan
1 Comment
 
LVL 9

Accepted Solution

by:
Dalin earned 50 total points
ID: 1448896
You use the MSComm control (comes with VB).  Drop it to your form, set the port property to 1 or 2.
You can use API also, but is moew code involving.

Let me know if you need further help.

Regards
Dalin
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Problem to skip loop 6 55
Excel VBA, find a string in a column, update a cell 7 66
Modifying Conditional Format from VBA code 3 49
Passing a Text Box name to a Sub 6 76
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

920 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

15 Experts available now in Live!

Get 1:1 Help Now