private void CCustomToolbar_Load(object sender, System.EventArgs e) { cCustomComboBox.ImageList = imlCurrent; String[] addresses = CCommon.GetNetworkAdapterAddresses(); foreach (string addr in addresses) { cCustomComboBox.cboCustom.Items.Add(new CCustomComboItem(addr, 2)); } cCustomComboBox.OnChangeNetworkAddress += new Sniffer.Common.CShare.SelectAddressHandler(cCustomComboBox_OnChangeNetworkAddress); }