简体   繁体   中英

Need Help Locating Winforms-compatible Custom Tooltip Control

在此处输入图片说明

I think this is a very smart control, does winForms have such a thing?

Devexpress has a free ToolTipController class (as well as ErrorProvider and HintController classes) which you can get here: https://www.devexpress.com/Products/Free/NetOffer/ which provides exactly what you want. I use it on daily basis. You can simply drop a textbox onto the form and set its tooltip, tooltipcontroller, and tooltipicon properties as you wish (also you can use the validation event to display error messages as tooltips).

您正在寻找ToolTip组件

No, not out of the box. There is a tooltip but it doesn't look like the one you show.

But you could make it by creating a custom control.

我能想到的最接近的是错误提供程序控件

there is an error provider in winforms to do this but if you want to display like this you can use Tooltip

// Create the ToolTip and associate with the Form container. ToolTip toolTip1 = new ToolTip();

     // Set up the delays for the ToolTip.
     toolTip1.AutoPopDelay = 5000;
     toolTip1.InitialDelay = 1000;
     toolTip1.ReshowDelay = 500;
     // Force the ToolTip text to be displayed whether or not the form is active.
     toolTip1.ShowAlways = true;

     // Set up the ToolTip text for the Button .
     toolTip1.SetToolTip(this.button1, "My button1");

MSDN reference

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM