How to Update COM1 port default settings(baud rate,parity) C#

kala picture kala · Jul 6, 2012 · Viewed 11.1k times · Source

I am using Windows XP Professional edition.

As my project requirement i want to update COM1 port default settings to my customized settings.

My Computer -> Manage -> Device Manager -> Ports -> Communications Port -> Port Settings ->

default settings are,

  1. Baud Rate === 9600
  2. databits === 8
  3. parity == none
  4. stop bit == 1

I want to change the above settings to

  1. Baud Rate === 2400
  2. databits === 7
  3. parity == even
  4. stop bit == 2

(what ever i am changing here in code should reflect in device manger ->port settings

Thanks in advance

Answer