I have a scenario that's driving me nuts and I'm trying to figure out if the problem I'm having is a bug in the treeview control or if there's a workaround I can use:
I have a treeview in a split container. Whenever the splitter is moved, the treeview scrolls back to the top.
The scenario is this: I have a treeview in the top of the splitter and a panel in the bottom of the splitter. When the user hovers over a node in the treeview, I fill in information about the node in the panel at the bottom. It's kinda like a super tooltip. The key issue is that I want the panel at the bottom to only take as much space as needed, so I move the splitter programmatically so there is no wasted space in the bottom of the splitter and the maximum amount of the tree view is visible. So, when the splitter gets moved (in this case, programmatically) to treeview scroll position resets to the top.
I have a treeview in a split container. Whenever the splitter is moved, the treeview scrolls back to the top.
The scenario is this: I have a treeview in the top of the splitter and a panel in the bottom of the splitter. When the user hovers over a node in the treeview, I fill in information about the node in the panel at the bottom. It's kinda like a super tooltip. The key issue is that I want the panel at the bottom to only take as much space as needed, so I move the splitter programmatically so there is no wasted space in the bottom of the splitter and the maximum amount of the tree view is visible. So, when the splitter gets moved (in this case, programmatically) to treeview scroll position resets to the top.