/// <summary> /// The protected OnVScroll method raises the event by invoking /// the delegates. The sender is always this, the current instance /// of the class. /// </summary> protected virtual void OnVScroll(ListViewScrollEventArgs e) { if (OnScroll != null) { OnScroll(this, e); } }
protected override void WndProc(ref Message m) { base.WndProc(ref m); if (m.Msg == 0x115)//fire event on wm_vscroll { ListViewScrollEventArgs e = new ListViewScrollEventArgs(); this.OnVScroll(e); } }
public static void AddListViewScrollEvent(ListView listView, ListViewScrollEventArgs action) { ScrollItems[listView] = action; }