Jay
Wed Sep 29 09:25:19 CDT 2004
DraguVaso,
I have not tried the new SerialPort yet, are you using it from your
MainWindow (thread) or in a separate thread?
Looking at
http://msdn2.microsoft.com/library/30swa673.aspx
Have you tried handling the ReceivedEvent?
I would probably use a separate thread...
Again I have not really tried got a chance to play with it.
If you haven't you may want to ask in the VS.NET 2005 newsgroups found at:
http://communities.microsoft.com/newsgroups/default.asp?icp=whidbey&slcid=us
The bottom of the intro has instructions on how to use the newsgroups via
Outlook Express instead of the web interface.
Hope this helps
Jay
"DraguVaso" <pietercoucke@hotmail.com> wrote in message
news:O65VF0hpEHA.1816@TK2MSFTNGP09.phx.gbl...
> Hi,
>
> I'm experimenting with the Serial Port in VB.NET 2005. Although it isn't
> that easy to get any feedback from my COM-port as I thought it would be...
>
> How can I read all the Data that the port sends back?
>
> I tryed with SerialPort1.ReadLine, but that blocks the application and
> takes
> a lot of time (10 seconds!), I tryed SerialPort1.Read, but I have to read
> it
> into a buffer and has to indicate the count, but how do I know this?
>
> Does anybody knows a nice way to send and receive smoothly all the data
> from
> the SerialPort?
>
> Thanks a lot in advance,
>
> Pieter
>
>