Observe Serial port read
<p>I'm beginner in C#. and develop a C# code for read data from a RFID reader.
it's happen by following code.</p>

<pre><code>public void Receiver(object sender, SerialDataReceivedEventArgs e)
    {
        byte RXByte;
        do
        {
            RXCnt = 0;
            do
            {
                RXByte = (byte)(COMPort.ReadByte());
                RXArray[RXCnt] = LookUpTable[RXByte &gt;&gt; 4];  // Convert each byte to two hexadecimal characters
                RXCnt++;
                RXArray[RXCnt] = LookUpTable[RXByte &amp; 15];
                RXCnt++;
                RXArray[RXCnt] = ' ';
                RXCnt++;
                SpaceCount = (byte)((SpaceCount + 1) &amp; 31);

                if (SpaceCount == 0)         // Insert CR and New Line after 32 numbers
                {
                    RXArray[RXCnt] = '\r';   //Carriage Return
                    RXCnt++;
                    RXArray[RXCnt] = '\n';   //New Line
                    RXCnt++;
                    Counter = Counter + 1;
                }                
            while (!(COMPort.BytesToRead == 0));
            this.Invoke(new MethodInvoker(Display));
        }

        while (!(COMPort.BytesToRead == 0)); 
    }


    private void Display()
    {
        Received.AppendText(new string(RXArray, 0, RXCnt));
    }
</code></pre>

<p>But when keep a tag close the RFID Reader ; Reader read ID tag continuous<br>
and show ID tag in a textbox as : 
00 00 E2 00   90 20 14 19   01 62 25 00   18 1F 00 82
00 00 E2 00   90 20 14 19   01 62 25 00   18 1F 00 82
00 00 E2 00   90 20 14 19   01 62 25 00   18 1F 00 82
00 00 E2 00   90 20 14 19   01 62 25 00   18 1F 00 82
.
.
.</p>

<p>but it is not good for me, because is better for me that show only(once).
00 00 E2 00   90 20 14 19   01 62 25 00   18 1F 00 82</p>

<p>and if I want to read another tag ;
The RFID Reader Read it and i show ID tag in textbox</p>

<p>finnaly I want to show Tag ID in text box only once.
if you can help me i'm appreciate.</p>

<p>TKana</p>
