Ghaleon
Ghaleon

Reputation: 1196

How to use SerialPort On Vb6

I have this code:

Dim com1 As IO.Ports.SerialPort = Nothing 

But when I try to type this code, it does not have the IO.... How may I references it in my project?

Upvotes: 0

Views: 2116

Answers (1)

Adrian
Adrian

Reputation: 2364

That library is part of VB.NET and as such is not accessible from VB6.

The usual way to access a serial port from VB6 is the MSComm ActiveX control, although there are other COM port controls that are easier to use.

http://www.ontrak.net/visual.htm

Upvotes: 2

Related Questions