سؤال

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