treeview scroll event
-
I have treeview which is in panel. As it grows scroll bar of the treeview appear. I want capture the scroll bar value and set the value to another treeview in another panel. But I could see that there is no scroll event for treeview. How can do that? Thanks in Advance Regards Surya :doh:
-
I have treeview which is in panel. As it grows scroll bar of the treeview appear. I want capture the scroll bar value and set the value to another treeview in another panel. But I could see that there is no scroll event for treeview. How can do that? Thanks in Advance Regards Surya :doh:
Unfortunately I can't provide any sample code because I can't get access to Visual Studio, but in terms of a scroll event, I'd create a class which inherits from TreeView and overrides the WndProc method. If m.Msg == WM_MOUSEWHEEL, then you've got a scroll message; you just have to interpret m.WParam and m.LParam properties in a fashion. When the derived class provides a Scroll event, use that instead of the TreeView control
Between the idea And the reality Between the motion And the act Falls the Shadow
-
Unfortunately I can't provide any sample code because I can't get access to Visual Studio, but in terms of a scroll event, I'd create a class which inherits from TreeView and overrides the WndProc method. If m.Msg == WM_MOUSEWHEEL, then you've got a scroll message; you just have to interpret m.WParam and m.LParam properties in a fashion. When the derived class provides a Scroll event, use that instead of the TreeView control
Between the idea And the reality Between the motion And the act Falls the Shadow
thanks for the help. I will try that. Best Regards Surya