开发者

C# ToolTip Display Duration

开发者 https://www.devze.com 2022-12-20 13:50 出处:网络
i need some advise on tooltip behaviour. i have tested the following: gameFormToolTip.Show(\"hello\", HomeTableLayoutPanel, 30000);

i need some advise on tooltip behaviour.

i have tested the following:

gameFormToolTip.Show("hello", HomeTableLayoutPanel, 30000);

gameFormToolTip.SetToolTip(HomeTableLayoutPanel, GameModel.alphaCoords(HomeTableLayoutPanel.GetCellPosition(no开发者_如何学JAVAwPicStrl).Column) + "," + HomeTableLayoutPanel.GetCellPosition(nowPicStrl).Row);

but in both cases the tooltip displays only for few fractions of a second. i have tried changing autopopdelay also and the behaviour stays the same!

am i missing something here? how can i make the tooltip stay on for longer?

thank you.


I think you should set ToolTip.AutomaticDelay property (value in milliseconds) otherwise tooltip will display only for 500ms.

0

精彩评论

暂无评论...
验证码 换一张
取 消