代码如下

        private void chkProcedure_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            int i = chkProcedure.IndexFromPoint(e.Location);
            if (i != CheckedListBox.NoMatches)
                MessageBox.Show(chkProcedure.Items[i].ToString());
        }

其中CheckedListBox.NoMatches就是常数-1

该方法对于ListBox也适用

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
猜你喜欢
  • 2021-07-14
  • 2021-05-30
  • 2021-05-30
  • 2021-09-19
  • 2021-05-14
相关资源
相似解决方案