确定多重选择列表控件 (List Control) 中的选定内容
依次通过控件的 Items 集合,分别测试每一项的 Selected 属性。
下面的示例显示如何测试多重选择 ListBox 控件(名为 ListBox1)的选定内容。代码将在一个标签中显示选定项的列表。

 1确定多重选择列表控件 (List Control) 中的选定内容' Visual Basic
 2End Sub

 

 1确定多重选择列表控件 (List Control) 中的选定内容// C#
 2确定多重选择列表控件 (List Control) 中的选定内容public void Button1_Click(object sender, System.EventArgs e)
 3}


 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-04
  • 2021-08-02
猜你喜欢
  • 2021-07-21
  • 2022-12-23
  • 2021-08-27
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
相关资源
相似解决方案