我有一个名为MyListView的ListView,它继承了ListView类。我想覆盖整个ItemCheck()/ OnItemCheck()。我怎么能完全覆盖它?
代码:
Public Class MyListView
Inherits ListView
Protected Overrides Sub OnItemCheck(ByVal ice As System.Windows.Forms.ItemCheckEventArgs)
'some code here - for some reason these are the only codes that i want to run
'stop here - how can i stop it?
MyBase.OnItemCheck(ice)
End Sub
End Class
我想在那里停止它,以便程序中的列表视图不会检查/取消选中,只有我输入的代码将被执行(不继续运行内置代码)
请帮助谢谢