Yes, it is like this. Microsoft did not add Scroll events to ListView. This has been submitted to Microsoft as an opinion, which is expected to add Scroll events in DOTNET V2.0. But what do we do now? We can only do it yourself, and we can eat it. Example code: class mylistview: listview {public evenethandler hscroll; public evenethandler vscroll;
MyListView () {this.hscroll = New EventHandler (onHScroll); this.vscroll = new eventhandler (onvscroll);}
const int WM_HSCROLL = 0x0114; const int WM_VSCROLL = 0x0115; protected override void WndProc (ref Message m) {if (m.Msg == WM_HSCROLL) {OnHScroll (this, new EventArgs ());} else if (m.Msg = = Wm_vscroll) {ONVSCROLL (this, new eventargs ());
Base.WndProc (Ref M);
Virtual protected void onhscroll (Object sender, Eventargs e) {}
Virtual protected void onvscroll (Object sender, eventargs e) {}}