Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Treeview replaces ampersand with underscore for node labels

$
0
0

Hi all.  I'm at a bit of a loss here -- I understand that labels expose a UseMemnomic property that allows you to specify the behavior regarding ampersands as a sort of hot key.  Setting the property to False will alow ampersands to appear naturally rather than being replaced with an underscore character.

However, I can't seem to find a similar property on the TreeView control nor on the TreeNode class. 

So let's say I have a label "A & P Groceries", it is displayed as "A _P Groceries" in the treenode label.  Does anyone know how to stop this behavior?  I am using inherited treenode classes so I do have access to protected members but I can't seem to find anything there either (assuming the node itself can resolve the issue).


Blog: http://codemidden.wordpress.com


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>