Answered 'System.IO.Ports.Parity

J Trahair

Well-known member
Joined
May 14, 2008
Messages
175
Location
Spain
Programming Experience
10+
Hi everyone. My project in CFNet 2.0 tells me to add an assembly:
HTML:
Error 1 Reference required to assembly 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' containing the type 'System.IO.Ports.Parity'. Add one to your project.

I am familiar with adding resources eg. System.IO, but when I do this for System.IO.Ports.Parity, the error message stays.

Here's what I have at the top of my form:
HTML:
Option Explicit On

Imports Microsoft.VisualBasic
Imports System.Collections
Imports System.Drawing.Rectangle
Imports System.IO
Imports System.IO.Ports.Parity
Imports System.Runtime.InteropServices
Imports System.Text

Public Class Tickets
    Inherits System.Windows.Forms.Form

    Private streamToPrint As StreamReader
    Private gblnSkipDataReader As Boolean

    Public gstrLoggedInAs As String = ""
etc.

Please can anyone point me in the right direction. Thank you.
 
System.IO.Ports.Parity is an Enum rather than a namespace.

Are you trying to work with serial ports?
If so...I think you are looking for System.IO.SerialPort
 
Back
Top