private void Form1_Load(object sender, EventArgs e) { //Tamir.IPLib.PcapDeviceList myDevices = Tamir.IPLib.SharpPcap.GetAllDevices(); //foreach (Tamir.IPLib.PcapDevice pcapdev in myDevices) //this.comboBox1.Items.Add(pcapdev.PcapDescription); //this.comboBox1.SelectedIndex = 1; //foreach(Tamir.IPLib.NetworkDevice Tamir.IPLib.PcapDeviceList myDevices = Tamir.IPLib.SharpPcap.GetAllDevices(); MessageBox.Show(myDevices.Count.ToString()); }