public Form1() { InitializeComponent(); _gps = new Nanariya.Gps(); _gps.GpsDataReceive += new Nanariya.Gps.GpsEventHandler(gps_GpsDataReceive); String[] ports = _gps.GetPortList(); foreach (String port in ports) { comboBox1.Items.Add(port); } }