开发者

"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.

"text" on the tree node when it 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜