Disable and Enable COM Port from .NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Currently, our application requires to use the COM Port but it seems that the
COM Port is being utilised by other process. Therefore if I need to use the
COM Port, I have to manually disable and then enable the COM Port. As such I
will need to know how to programmatically disable and enable the COM Port.

Please advise on how to go about it in .NET or VB6. Thanks
 
Hi,
You can enable the COM port manually and i don't see the need for
enabling it programmatically. i think, some application like active sync
which loads up in system startup block the access for ur COM Port.. For
this you have kill or release this App from process manually or
programmatically, so that ur app gains access to COM port.

2 ways of accessing COM serial ports.
1 is developing wrapper clases for Win32 APIs and the other is using the
namespace System.IO.Ports.
 
Back
Top