日期:2014-05-17  浏览次数:21063 次

如何treeview 高亮显示选中的节点,即使treeview失去焦点都要高亮显示
如何treeview 高亮显示选中的节点,即使treeview失去焦点都要高亮显示
------最佳解决方案--------------------
http://msdn.microsoft.com/en-us/library/system.windows.forms.treeview.hideselection.aspx

Gets or sets a value indicating whether the selected tree node remains highlighted even when the tree view has lost the focus.

TreeView.HideSelection = false
------其他解决方案--------------------
在失去光标事件中更改节点的字体
------其他解决方案--------------------
在winform里有这个属性,但是在webform里treeview可没这个hideSelection属性啊
引用:
http://msdn.microsoft.com/en-us/library/system.windows.forms.treeview.hideselection.aspx

Gets or sets a value indicating whether the selected tree node remains highlighted even when the tree view h……

------其他解决方案--------------------
设置TreeView中 选中的节点高亮显示,设置哪个属性??
------其他解决方案--------------------
引用:
http://msdn.microsoft.com/en-us/library/system.windows.forms.treeview.hideselection.aspx

Gets or sets a value indicating whether the selected tree node remains highlighted even when th……


这个是正解啊。