mouse wheel
Brought to you by:
agaman
In some case,mouse wheel action doesn't work.
I found it was because in treeviewadv class ,OnMouseWheel method doesn't anything.
see the code belowing:
class TreeViewAdv
protected override void OnMouseWheel(MouseEventArgs e)
{
......before......
int lines =( e.Delta / 120* SystemInformation.MouseWheelScrollLines);
.....if e.delta<120, lines will be always 0....so..
.....I change it to......
int lines =(int)( e.Delta / 120.0 * SystemInformation.MouseWheelScrollLines);
.....it works...
}