簡體   English   中英

需要幫助來查找與Winforms兼容的自定義工具提示控件

[英]Need Help Locating Winforms-compatible Custom Tooltip Control

在此處輸入圖片說明

我認為這是一個非常聰明的控件,winForms有這樣的東西嗎?

Devexpress有一個免費的ToolTipController類(以及ErrorProvider和HintController類),您可以在這里找到: https : //www.devexpress.com/Products/Free/NetOffer/提供了您想要的。 我每天都使用它。 您可以簡單地將文本框拖放到表單上,並根據需要設置其工具提示,工具提示控制器和工具提示圖標屬性(也可以使用驗證事件將錯誤消息顯示為工具提示)。

您正在尋找ToolTip組件

不,不是開箱即用的。 有一個工具提示,但看起來不像您顯示的那樣。

但是您可以通過創建自定義控件來實現。

我能想到的最接近的是錯誤提供程序控件

在winforms中有一個錯誤提供程序可以做到這一點,但是如果您要這樣顯示,可以使用工具提示

//創建工具提示並與Form容器關聯。 ToolTip toolTip1 =新的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參考

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM