Printable versions
This Page
All Pages
PDF

Index

Class
Port

Properties
List
Enabled
BaudRate
ComPort

Methods
Read
Write
Purge
Dispose

ByteArrayToString
StringToByteArray

Events
OnRead
OnWritten
OnDSR
OnCTS
OnRI
OnDCD
OnForceClose

More Properties
Parity
StopBits
ByteSize
StartTrigger
EndTrigger
BufferSize
Timeout

DSR
CTS
RI
DCD

Handshake
RTS
DTR
Break
InfraRed

MultiThreading
Parent
NoEvents

Port.Enabled SerialTools v1.00 and later

Opens or closes the serial port specified by Port.ComPort.

VB.NET sample:
Dim objPort As New SerialCE.Port

objPort.BaudRate = 4800
objPort.ComPort = 2
objPort.Enabled = True		' Starts serial port.

objPort.Write("Some data written to serial port")

If the component is running inside a browser a dialog box will be shown to the user when Enabled is set to true. This dialog box asks the user if he allows a connection to the serial port or not.

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

NOTE! COM3 on Windows CE is often a infra red port. Port.InfraRed must be set to true for IR ports on Windows CE.

See also Port.OnRead and Port.Write.

Syntax
object.Enabled = Value
Value = object.Enabled

Part Type Description
object SerialCE.Port An object that evaluates to an SerialCE.Port object.
Value Boolean (Variant) true



Pocket PC
© 2016 Franson Technology AB, All rights reserved, Contact | | Affiliate | Login