ToolTip Control search for SetShowDuration

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 3 years and 3 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
swingfire
Posts: 3
Last visit: Tue Jul 04, 2023 10:52 pm

ToolTip Control search for SetShowDuration

Post by swingfire »

Product, version and build: 2020 5.7.182
Operating system: Windows 10 / Windows Server 2019
PowerShell version(s): 5.1 build 18362


Hi all,
I used ToolTip Control but find out that I have to increase ShowDuration of each tooltip. I don't find out how to do it with Sapien Control.
So perhaps someone can help me to increase it ?
Example
.Net command
[System. Windows. Controls. ToolTipService] ::SetShowDuration( ?object? ,100000)
But I have to reference to .Net Object from Tooltip control. Any idea how this reference is called ?

Thanks for any idea.

kind regards,
Swing
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 1:00 pm
Answers: 39
Been upvoted: 30 times

Re: ToolTip Control search for SetShowDuration

Post by brittneyr »

You may find the following article helpful:
https://www.sapien.com/blog/2014/01/30/ ... p-control/
Brittney
SAPIEN Technologies, Inc.
User avatar
swingfire
Posts: 3
Last visit: Tue Jul 04, 2023 10:52 pm

Re: ToolTip Control search for SetShowDuration

Post by swingfire »

Hi Brittney

Sry, but this article NOT help. I am searching on a method how I can change the duration of showing the tooltip.

Like [System. Windows. Controls. ToolTipService] ::SetShowDuration

How I can do this with with your tooltip control ?

Thanks.

kind regards,
Mathias
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

Re: ToolTip Control search for SetShowDuration

Post by Alexander Riedel »

The tooltip control is not "our" control. It is a standard Microsoft Windows Forms control, like all controls PowerShell Studio uses.
The class you mention applies to WPF not to Window Forms, so it does not apply.
This article may help you
https://docs.microsoft.com/en-us/dotnet ... esktop-4.8
Googling "Windows Forms extend tooltip time" brings up additional articles that may help.
Alexander Riedel
SAPIEN Technologies, Inc.
This topic is 3 years and 3 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked