The downloaded file is corrupt or incomplete. Please test and verify. I have uploaded what I received.

hi all, im just starting out with visual studio 2008 c# and want to learn about serial com, i need to download this files too to learn about it but its not working for me, can someone test the file is ok as it could just be me or its corrupt

The zip file is corrupt.
Your code sounds great, so could you please e-mail me the code?
if you zip it, will you please encode and password protect it with a password of 'zip' as our silly system requires zip files to be encoded

Also, I have a question. I have compiled the code under VS 2008 and it works. But there is one problem: upon reception in inserts a couple or more new lines in the message.

It's not the reception itself that is the problem, as if you test it with another terminal app it works fine.

I this that the reception thread may be interrupted by something. I modified the code in order to use separate windows for Tx and Rx and also took down the RichtextBoxes and replaced the with Normal TextBoxes, but the same thing happens..

Great info, but I'm having some trouble understanding how the threading works here. Is the serial port code on a separate thread than the form? Do the invoke and the [STAThread] statements execute this code on the original thread? Thanks!

Thanks for the serial com C# lesson (I am not done reading it yet), but I have a question about com events.

I this code (below) from a C++ app that I am working on, the events created and the real time status of the port are available. I will use this to manage the states of an interface to an embedded device (a controller).

The reason I am asking this is that I would liek to know if these services and events are available in C#. I haven't found any documentation that helps in the Visual Studio documentation.

but how do l send file with serial port in c#.
if l want send a file, do l need to use some protocol such as xmodom?
Can l set transmission protocol in visual studio' serialport.
my email is [email protected]
l am waiting for your help。哈哈

Also, I am using this with an FPGA but when I open the port, and send data. the FPGA light goes lit but doesn't turn off. Also, when I want to close the port, it looks like the program is frozen. Is it that the code needs something else, or does it not support FPGA, or there could be fault in the programming of the FPGA?

I also want to know if part of the output of the program displays a message regarding that the object received data, or displays the data that was received.

I am bad at understanding things at first time, so please don't get mad if it was explained in the first post.

Also, I am using this with an FPGA but when I open the port, and send data. the FPGA light goes lit but doesn't turn off. Also, when I want to close the port, it looks like the program is frozen. Is it that the code needs something else, or does it not support FPGA, or there could be fault in the programming of the FPGA?

I also want to know if part of the output of the program displays a message regarding that the object received data, or displays the data that was received.

I am bad at understanding things at first time, so please don't get mad if it was explained in the first post.

I just downloaded the code from the alternate link in a previous post. It seems that the click event was never created to close the port. It's an easy fix, here's what I added to make it work...