Listbox 实现Item双击事件

来源:互联网 发布:校园网mac地址修改 编辑:程序博客网 时间:2024/05/02 02:29
void listBox1_MouseDoubleClick(object sender, MouseEventArgs e)    {         int index = this.listBox1.IndexFromPoint(e.Location);         if (index != System.Windows.Forms.ListBox.NoMatches)            {              MessageBox.Show(index.ToString());            }     }

引用: http://stackoverflow.com/questions/4454423/c-sharp-listbox-item-double-click-event

0 0
原创粉丝点击