private void btnUseDefaultDevice_Click(object sender, EventArgs e) { foreach (ListViewItem item in listAudioOutputDevices.Items) { MMDevice device = item.Tag as MMDevice; item.Checked = device.Is(defaultDevice); } }