• Welcome to Forum.Deepsoftware.Com. Please login or sign up.
 

automatically select device com port

Started by weggin, June 17, 2010, 11:10:26 am

Previous topic - Next topic

weggin

June 17, 2010, 11:10:26 am Last Edit: June 17, 2010, 11:53:20 pm by 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

June 18, 2010, 05:23:44 am #1 Last Edit: June 18, 2010, 05:29:36 am by Roman Novgorodov
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.