我想用在Winforms中网格的列工具提示类添加工具提示。

我想这是因为我需要在radgridview延长内置网格工具提示的持续时间。如果你能帮助我在设置网格的内置工具提示的时间,那么这也将是足够的。

编辑:任何人可以告诉我那就是它可以或不可以

感谢。

有帮助吗?

解决方案

这是可能的工具提示添加到现有的控制。我从来没有用过radgridview,所以我只能给你头上的大方向。

ToolTip tooltip = new ToolTip();
tooltip.SetToolTip(grid, "your caption here");
tooltip.Popup += HandleToolTipPopup;
tooltip.AutoPopDelay = {time to display tooltip};

private void HandleToolTipPopup(object sender, PopupEventArgs e)
{
    Point mouseLocation = Control.MousePosition;
    Point relativeLocation = grid.PointToClient(mouseLocation);

    // Check to see if it is within the area to popup on.
    // Set e.Cancel to false if not.
}
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top