checkedListBox

checkedListBox是不支持多选的:

SelectionMode 属性确定列表框中是否可以选定一个项或者不能选定任何项。 对于 CheckedListBox 对象,不支持多重选择。 可将该模式设置为一项或没有任何项。

http://msdn.microsoft.com/zh-cn/library/system.windows.forms.checkedlistbox.selectionmode.aspx

linkLabel:

private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
      //连接到网页
      System.Diagnostics.Process.Start("http://www.uworks.cn");
     
      //连接到新窗口
      Form f2 = new Form();
      f2.Show();
      linkLabel1.LinkVisited = true;
}

comboBox:

//绑定
comboBox1.DataSource = dt; comboBox1.DisplayMember = "BILL_ID"; comboBox1.ValueMember = "SELFID";

comboBox1.SelectedItem:当前选择中的第一个项

comboBox1.SelectedText:comboBox1.DisplayMember的值

comboBox1.SelectedValue:comboBox1.ValueMember的值,如果没设置就会报错

原文地址:https://www.cnblogs.com/tony312ws/p/2146016.html