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.
Locked
User avatar
swingfire
Posts: 3
Joined: Thu Jun 25, 2015 1:06 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: 645
Joined: Thu Jun 01, 2017 7:20 am
Answers: 8
Been upvoted: 6 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 Ryn
SAPIEN Technologies, Inc.

User avatar
swingfire
Posts: 3
Joined: Thu Jun 25, 2015 1:06 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: 7561
Joined: Tue May 29, 2007 4:43 pm
Answers: 2
Been upvoted: 5 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.

Locked