首页 > 学院 > 开发设计 > 正文

ListView双击事件

2019-11-17 02:46:51
字体:
来源:转载
供稿:网友

ListView双击事件

 1 PRivate Sub lstShowRunning_MouseDoubleClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles lstShowRunning.MouseDoubleClick 2         Try 3             If lstShowRunning.SelectedItems.Count > 0 Then 4                 If lstShowRunning.SelectedItems(0).ToolTipText <> "" Then 5                     Using frmMsg As New frmMessage(lstShowRunning.SelectedItems(0).ToolTipText) 6                         frmMsg.ShowDialog() 7                     End Using 8                 End If 9                 10             End If11         Catch12             Try13                 If lstShowRunning.SelectedItems.Count > 0 Then14                     MessageBox.Show(lstShowRunning.SelectedItems(0).ToolTipText)15                 End If16             Catch17             End Try18         End Try19     End Sub20 End Class


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表