Instead hard coding the port name, how can i make my program find the correct COM port? I don't want to be given the option of which COM port to chose. I want my program to directly Open it.
public string portName = "COM5";
Instead hard coding the port name, how can i make my program find the correct COM port? I don't want to be given the option of which COM port to chose. I want my program to directly Open it.
public string portName = "COM5";