Printable versions
This Page
All Pages
PDF

Index

Class
VPort

Properties
Created
ComPort

Methods
DataFromPort
DataToPort
PortStatus
Dispose

Events
OnDataFromPort
OnOpened
OnClosed

More Properties
StartTrigger
EndTrigger
BufferSize
Timeout

MultiThreading
Parent
NoEvents

VPort.Created SerialTools v2.00 and later

Creates or destroys the virtual serial port specified by VPort.ComPort.

Note! On Windows Mobile / Pocket PC, if you want to connect several applications to the same VPort you can use GpsGate API instead. SerialTools does not support the scenario of multiple applications connecting to one virtual port.

VB.NET sample:
Dim objVPort As New SerialNET.VPort

objVPort.ComPort = 4
objVPort.Created = True		' Creates serial port.


NOTE! You must destroy the port by setting Created to false before you unload the form you got the VPort.OnDataFromPort event handler on. And you must call VPort.Dispose after you have finished using the port object or else wont the application exit properly.

See also VPort.OnDataFromPort and VPort.DataToPort.

Syntax
object.Created = Value
Value = object.Created

Part Type Description
object SerialNET.VPort An object that evaluates to an SerialNET.VPort object.
Value bool true



100% managed code
© 2016 Franson Technology AB, All rights reserved, Contact | | Affiliate | Login