>Does anyone know if there's a way to prevent the user from moving off of the current node in a treeview, yet still be able to scroll? I've currently got the treeview disabled, but that prevents them from scrolling up to see what the parent node is. The treeview doesn't have a ReadOnly property.
I fooled with it and could not get the enabled to do anything other make the rowhighlite "look" disabled. Other nodes could be "clicked" and selected - but have a grey highlite!
Until something else pops up, it looks like a "transparent" shape would need to be sized over the treeview.
oShape.Top=oTree.Top
oShape.Height=oTree.Height-SYSMETRIC(8)
oShape.Width=oTree.Width-SYSMETRIC(5)
You may need to assure that the Zorder will sit it on top of your view. You might need to check (somehow) the tree for the presence scroll bars.
Imagination is more important than knowledge