"text" on the tree node when it is partially visible
How's t开发者_开发知识库he text(like below "Temporary ASP.NET") hovers directly over the tree node called? Any difference from tooltip?
Can it be controlled on visibility? e.g. do not display even when the node is partially visible.
pic: Windows Explorer
Thanks,
Yes, you can control this property, but not with a standard property.
If you override TreeView, and add a new CreateParams override, and add this code, then the tooltip won't appear:
protected override CreateParams CreateParams
{
get
{
CreateParams parms = base.CreateParams;
parms.Style |= 0x80; // Turn on TVS_NOTOOLTIPS
return parms;
}
}
Code found here
精彩评论