automatically select device com port

Started by weggin, June 17, 2010, 02:10:26 PM

Previous topic - Next topic

weggin

Hi Roman:
  in Windows Device Manager, my phone device is connected with USB and be assigned to com10.
How could i add the auto select settings below when the GSM program start working initially?

__fastcall TForm1::TForm1(TComponent* Owner)
       : TForm(Owner)
{ //add the code about selecting device com port automatically
 ...
}
It could automatically be assigned to com10 in the "nrDeviceBox1Change" without me selecting manually.

Best Regard,
weggin


Roman Novgorodov

#1
Hello

You can try something like this:

nrComm1.ComPortNo = 10;

Roman Novgorodov
DeepSoftware.Com
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.