Can I use MsComm Control in my own DLL class?

Posted on 2003-03-15
Medium Priority
Last Modified: 2010-05-01
I want to develop a class in VB based on MsComm control.  But MsComm control is an ocx (visual control that should be placed on a form) but I don't want to make any forms, yet, I still want to use it???

Question by:alkait
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 18

Expert Comment

ID: 8145581
No you cant use an OCX without a container that will hold the OCX. The best way to do this would be placing them on a form and never displaying the form.

Author Comment

ID: 8145599
But I do not want to make an EXE. I want to make a component that communicate with serial port and this cannot be achieved by making a form in an EXE
LVL 18

Accepted Solution

Sethi earned 200 total points
ID: 8145645
You can make a DLL with a form in it.

Author Comment

ID: 8145668
Thanks Alot
LVL 18

Expert Comment

ID: 8145690
Anytime :-)

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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 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…
Suggested Courses
Course of the Month12 days, 17 hours left to enroll

777 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