문제

How's the 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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top