Mscomm ComPort 17

I can see in the help file that at DESIGN time it is only possible to open comPort 1 to 16!
Well I Want to open Comport 17. I guess I have to set it in RUNTIME then.
If I try to to this :
Mscomm.CommPort = 17, then I get this error :
8002 Invalid Port Number!!

Is it not possible by the Mscomm to open a port that is greater than 16???
How should I do it then? I can see that my hyperterminal can open COM17, What special do they do?
Pleaz help me!
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

This is a direct quote from the microsoft help pages for the MSComm Control:

"You can set value to any number between 1 and 16 at design time (the default is 1). However, the MSComm control generates error 68 (Device unavailable) if the port does not exist when you attempt to open it with the PortOpen property."

You can only set up to 16 with this control.  You will have to use API's to open above 16.

There is a sample of using the API at:

SAMPLE: December 1994 Microsoft Systems Journal Code 


By the way, the sample is called Ttychic.exe

ismohamedAuthor Commented:
The sample at the microsoft homepage, is written in C++!
That ain't my strenght!!
I need something for VB!
Sorry, that reference came DIRECTLY from the microsoft VISUAL BASIC page:

INFO: Troubleshooting Tips for the MSComm Control 

Try this (it's 16-bit, you need to use the 32-bit APIs):

SAMPLE: Program Example for COM Port Support in Visual Basic 



Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.