Wpf Serial Port

Posted on by admin
  1. Serial Port C# Wpf Tutorial

See'Ben Kim' wrote in messagenews:eg.@TK2MSFTNGP10.phx.gbl. Hello all,Does anyone have an example on how to implement the new SerialPort Classin VB.NET? I have been able to create the class, send (.WriteLine) to theport and Read from the port but cannot figure out how to use the Events totell my program that data is available in the serial port buffer.I have searched the internet and MSDN and there doesn't appear to be anyfull example on how to do this simple task.Any help would be greatly appreciated!Ben Kim.

Vga

Thank you Chuck. Exactly what I was looking for.

However this has broughtup a different issue.Here is the code I created based on the example you gave.

Serial Port C# Wpf Tutorial

Likely best to break this up into 2x distinct questions + then post the code you have now + error codes returned.Keep in mind, the answers to your questions depend on the context of your exact code.You'll also require very clear descriptions of what you're asking.For example, there is no common definition of what 'refresh a serial port connection' might mean.This is where your Application code + clear descriptions come into play.I know what 'refresh a serial port connection' means to me + no clue what it means to you. Or in the context of your application code.This may also relate to your specific hardware, as even clearing i/o registers may be very different, depending on hardware being used.